in reply to Re: Re: RegExp Delimiter
in thread RegExp Delimiter
If "/" is the delimiter then the initial m is optional. With the m you can use any pair of non-alphanumeric, non-whitespace characters as delimiters. This is particularly useful for matching path names that contain "/", to avoid LTS (leaning toothpick syndrome). If "?" is the delimiter, then the match-only-once rule of ?PATTERN? applies. If "'" is the delimiter, no interpolation is performed on the PATTERN.I find that I use hash-marks as a replacement more often than not(m##), or, on those occasions where that's no good, excamation marks (m!!). Now I remember why I don't use '?'.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re(4): RegExp Delimiter
by Dog and Pony (Priest) on Sep 03, 2002 at 15:20 UTC | |
|
Re^4: RegExp Delimiter
by Aristotle (Chancellor) on Sep 03, 2002 at 13:02 UTC |