Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JFlex Jlex macro definition using unicode BaseChar=[#x0041-#x005A]......

843789Aug 27 2010 — edited Aug 27 2010
Hi,
How can i declare a jflex macro using unicode ? For exemple if use *Letter=[a-zA-Z]* it is ok , but if i try smth like this *Letter=([\#x0041-\#x005A]|[\#x0061-\#x007A])* will not work (.java file is generated but will not recognize my characters)...this is just an exemple i want to use unicode for latin arabic...characters .I need that for a xml parser where basechar is smth like this
:*BaseChar=[#x0041-#x005A]|[#x0061-#x007A] | [#x00C0-#x00D6] | [#x00D8-#x00F6] | [#x00F8-#x00FF]..............*
Thx all!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 24 2010
Added on Aug 27 2010
1 comment
170 views