in reply to regex: how to negate a set of character ranges?
Which means you're using the literal [, - | and ] characters as part of a bigger character class./[^[\x30-39]|[\x41-\x59]|[\x61-\x7a]| ... #etc
Also, it looks like you're trying to match raw byte sequences instead of characters. I have zero experience with shift-jis so I have no clue what characters (if any) you're trying to match, but as a wild stab, I would assume it's a lot easier to use Encode's decode() function to translate the shift-jis bytes into true (utf-8) characters and then match on characters (since you then can match multi-byte codepoints directly).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: regex: how to negate a set of character ranges?
by kettle (Beadle) on Apr 29, 2007 at 17:56 UTC | |
by Joost (Canon) on Apr 29, 2007 at 18:22 UTC |