help-flex
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Hex character ranges


From: Raman Muthukrishnan
Subject: Re: Hex character ranges
Date: Fri, 25 Aug 2006 10:01:02 -0700 (PDT)

Flex allows only single character ranges. From the flex man page:
           [xyz]      a "character class"; in this case, the pattern
                        matches either an 'x', a 'y', or a 'z'
           [abj-oZ]   a "character class" with a range in it; matches
                        an 'a', a 'b', any letter from 'j' through 'o',
                        or a 'Z'
Note the description of 'j' through 'o'.
So you can also give [\x01-\xFF] as a character range; but [\x01\x02-\x0f\xff] will be interpreted as match for \x01, or match for any char in the range \x02 to \x0f or match char \xFF.

address@hidden wrote:
From: address@hidden
Subject: Hex character ranges
To: help-flex
Message-ID:
<address@hidden>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Greetings,

According to the documentation, it is possible to specify a hex
character to match using '\x' such in '\x2a'. I was curious if it was
possible to use hex ranges in such _expression_, like matching \x20a0 to
\x20cf. If so, can you use some compound logic to make a defintion,
such as
SYMBOL \x092f|\x0e3f|[\x20a0-\x20cf]

If this isn't possible, please suggest possible work arounds.

Thanks for taking the time to read this,
Matt




------------------------------

_______________________________________________
help-flex mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/help-flex


End of help-flex Digest, Vol 44, Issue 1
****************************************


Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2ยข/min or less.
reply via email to

[Prev in Thread] Current Thread [Next in Thread]