|
Posted by Janwillem Borleffs on 02/13/07 20:25
deko wrote:
> Thanks, but I'm still baffled by that syntax - why the second
> negation '!' after the first '$' ? I understand that '$' means end
> of line, and 'i' means case insensitive... is '$!' saying "not ending
> with"?
The exclamation marks are used to indicate the beginning and the end of the
pattern. The following will also work:
#(pattern)#
|(pattern)|
?(pattern)?
.....or any character that's not in use by the pattern. This is not a
restriction, however, because you can escape characters with a backslash
when they occur both in the pattern and as pattern delimiters:
|(a\|b)|
JW
Navigation:
[Reply to this message]
|