I know regex very well but that escape is unfamiliar.

Can you use UTF-8 verbatim?

OSS has compile flags, so  it could have different features. 


Oleg


On Mar 12, 2009, at 0:26, Alexander Mikhailov <[email protected]> wrote:



Hi,

I'm trying to construct a regular expression which recognizes a Unicode
class of characters.

The following command

'\p{Lu}' rxmatch 'bAb'

produces the error

|pattern error at offset 1     : rxcomp
|   (rxerror'')    13!:8[12

I expect it should return 1 1 . The command
'\d[ab]' rxmatch 'qw1awer' produces 2 2 , as expected. Am I doing
something wrong?

I've checked http://www.jsoftware.com/help/pcre/pcrepattern.html ,
it says, "When PCRE is built with Unicode character property support,
three additional escape sequences to match character properties are
available..." Does it mean there are different versions of ~tools/
regex/jpcre.dll?..

Thank you,

Alexander




----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm



      
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to