Forum Moderators: coopster

Message Too Old, No Replies

regex with Hex

         

Sylver

10:19 am on May 27, 2006 (gmt 0)

10+ Year Member



I am having problems with regex with hex codes. I am pretty sure there is something 'obvious' I am missing, but what?

I want to do some file manipulation with exotic formats (some unicode, some not).

The unicode bit is causing me headaches no end. I tried searching for 4 digits hex codes like \x{C200}, but the darn thing never matches.

Does someone know a good tutorial for doing regex with Hex codes?

eelixduppy

1:29 pm on May 27, 2006 (gmt 0)



Here is a good tutorial [webmasterworld.com] in general, taken from our library [webmasterworld.com].

Sylver

7:51 pm on May 27, 2006 (gmt 0)

10+ Year Member



Thanks, but I am afraid I need something a little more advanced, specifically taking up the issue of 4 digit hex codes and unicode handling.

coopster

4:22 pm on May 30, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



I think you'll find some direction/insight on the Perl-compatible regular expression (PCRE) [php.net] manual pages. Look specifically at the Pattern Modifiers and Pattern Syntax pages.