We will be migrating from Ask to Discourse on the first week of August, read the details here

Ask Your Question
1

Regular Expressions is not working on Mac [closed]

asked 2013-02-14 20:29:00 +0200

shiyuan gravatar image

updated 2020-07-12 23:48:19 +0200

Alex Kemp gravatar image

On ubuntu with Libreoffice I often use this two regular expressions:

To Identify opening quotation marks

"(\<|[\[\(])

To identify closing quotation marks

(\>|[,.;!?\]\)])"

However, recently I installed the latest Libreoffice on my Mac. this two are stop working properly, they only find quotation marks rather than identifying the opening or closing.

My Mac is on an old imac intel core duo with OS X 10.6.8

Is it something to do with the Java environment.

ps:, on same mac, I used to use this to identify the uppercase words, (two caps together)

[:upper:][:upper:]

It worked fine, but today it stop working. Dunno why, I make sure it is only Regular Expression is on and other are off. but still no result.

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Alex Kemp
close date 2015-10-21 22:26:31.336156

Comments

@qubit thanks for your answer, I have summited the bug. Furthermore, I experienced the same problem in the latest OpenOffice. I made a video demonstration here: http://screencast.com/t/NSKNYcHB85

shiyuan gravatar imageshiyuan ( 2013-02-15 16:31:01 +0200 )edit

@shiyuan, Cool, thanks for submitting the bug. What's the bug # or url? It's very helpful to keep the bug report linked to this question.

qubit gravatar imagequbit ( 2013-02-17 10:13:12 +0200 )edit

@qubit sorry, I tried to comment on this post few times, but however my Chrome is not behaving as it supposes to be. the bug is 60905. the URL is https://bugs.freedesktop.org/show_bug.cgi?id=60905

shiyuan gravatar imageshiyuan ( 2013-02-18 13:01:05 +0200 )edit

@qubit may it be possible that on mac there is a different type of regex engine? found this: http://stackoverflow.com/questions/5905493/why-isnt-this-regex-working-find-regex-m-h

shiyuan gravatar imageshiyuan ( 2013-02-18 14:03:52 +0200 )edit

@jorendc -- If you have the time, please try to repro fdo#60905. Thanks!

qubit gravatar imagequbit ( 2013-02-23 10:03:16 +0200 )edit
1

@qubit: done :)

jorendc gravatar imagejorendc ( 2013-02-23 23:56:37 +0200 )edit

1 Answer

Sort by » oldest newest most voted
1

answered 2013-02-15 00:15:39 +0200

qubit gravatar image

updated 2013-02-15 00:23:51 +0200

Hmmm...very suspicious!

There is a new Regexp engine in LO 4.0, so that might be the root of this issue:

From the docs of the new engine, "ICU Regular Expressions conform to Unicode Technical Standard #18", although I'm not sure if the old Regexp engine conformed to that spec or not!

It can't hurt to file a bug report and provide as much information as possible. At the very least, we should probably provide some kind of warning or compatibility layer.

If you do file a bug, please post a link to it in a comment below using the format "fdo#123456". And please let me know what they say about regexp compatibility -- it would be helpful when these types of questions arise!

Thanks!

edit flag offensive delete link more

Comments

Bug has been filed: fdo#60905 has current status of NEEDINFO.

Resolving Question as BUG FILED.

qubit gravatar imagequbit ( 2013-02-24 00:24:11 +0200 )edit

Question Tools

2 followers

Stats

Asked: 2013-02-14 20:29:00 +0200

Seen: 371 times

Last updated: Feb 15 '13