Regular Expression question
Mark Schonewille
m.schonewille at economy-x-talk.com
Fri Mar 13 05:51:53 EDT 2009
Hi Ron,
If you have your unicode data in a field, it is always Rev's only
flavour of unicode, which is mostly the same as UTF16. So, if you
convert your search string to UTF16 and escape the necessary
characters, you should be able to use regex on a field.
If you are doing a regex search on unicode data from a UTF8 file,
without displaying this data in a field, you need to convert your
regex search string to UTF8 before doing the search.
So, probably, the answer to your question is that Revolution doesn't
natively support regex for unicode, but there are workarounds possible.
--
Best regards,
Mark Schonewille
Economy-x-Talk Consulting and Software Engineering
http://economy-x-talk.com
http://www.salery.biz
Dutch forum: http://runrev.info/rrforum
Snapper Screen Recorder is now available for Windows! Download it at <http://snapper.economy-x-talk.com
>.
On 13 mrt 2009, at 10:44, ron barber wrote:
> Hi,
> I'm trying to use regex for searching unicode text in Rev. The docs
> say that Rev follows pcre rules and I've tried various combinations or
> \N, \x but unsuccessfully. Can someone offer a way to do this or
> confirm that Rev does not support regex for unicode?
>
> I am working with utf 8 (Greek etc) and utf 16 (Japanese etc)
>
> Thanks so much,
>
> Ron
More information about the use-livecode
mailing list