I used the trick of interpolating an arbitrary expression using a reference.
Only the stuff inside the quotes appears inside the qr// construct.my $XML_BaseChar= qr/@{[ "[" . # a character class... "\x{0041}-\x{005A}" . # the first range "\x{0100}-\x{0131}\x{0134}-\x{013E}\x{0141}-\x{0148}" . # the next +range "\x{01FA}-\x{0217}\x{0250}-\x{02A8}" . # etc. "]" ]}/; #here's how to close it up
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Extend regex legibility within character classes
by knobunc (Pilgrim) on Jun 11, 2001 at 21:34 UTC | |
by John M. Dlugosz (Monsignor) on Jun 11, 2001 at 22:06 UTC | |
by tye (Sage) on Jun 12, 2001 at 01:25 UTC |