[Tfug] Regex poser

Bexley Hall bexley401 at yahoo.com
Thu Nov 5 10:48:06 MST 2009


Hi Ryan,

[always hard to read that -- as I type it -- and not here Sean
Connery's brogue in the back of my mind... :> ]

> >> > I want a regex that is essentially
> >> >
> >> > [\x20-\x60][\x80-\xFF][\x60-\xDF]
> >> >
> >> > but *excludes* \x22\x83\x78
>
> So how about this?
> 
> ([\x20-\x21\x23-\x60][\x80-\xFF][\x60-\xDF]|[\x20-\x60][\x80-\xFF][\x60-\x77\x79-\xDF]|[\x20-\x60][\x80-\x82\x84-\xFF][\x60-\xDF])

That was the best I could come up with.  :<  But, it is incredibly
cryptic *and* gets worse (i.e., I also want to exclude \x31\x90\xCF
and \x55\x88\x66 ...)

<frown>  I need to give this some serious "rethought"


      




More information about the tfug mailing list