
JasperD
Novice
Dec 17, 2010, 2:16 AM
Post #3 of 6
(2097 views)
|
|
Re: [shawnhcorey] match, but do not match
[In reply to]
|
Can't Post
|
|
Thanks for the answer already, The look-behind pattern is probably going to help me and the code you gave seems to work for me. However, your post leads to ask me a couple of more questions since I would like to know what I am doing. I am not familiar with this syntax: s{ (?<!\@) \" [^"]* \" }{}gmsx; Where can I find info about "gmsx"? A search on preldoc does not seem to give any results, What is the {}? The syntax you use, can this be optimized (disable backtracking, disable buffering)? Like the double quotes string match example from perlre: Which according to perldoc can be most efficiently performed when written as: So, can my original question also be written as a optimized single regex pattern to be used in s///g?
|