rwilkin
01-29-2011, 10:56 PM
Hi All,
I have this regex pattern to find text in quotation marks - '/named([\s]|[\r\n])"([^"]+)"/i'
the strings I am looking for always have 'named ' before the "name" part. This works for most of the file I search through. However, sometimes the file I get has a line break between named and "name" and sometimes it has a line break and a tab between them.
i.e
named "name 1" -- Works
named
"name 2" -- Doesn't work
named
[tab]"name 3" -- Doesn't work
Can anyone tell me what I am doing wrong?
I have this regex pattern to find text in quotation marks - '/named([\s]|[\r\n])"([^"]+)"/i'
the strings I am looking for always have 'named ' before the "name" part. This works for most of the file I search through. However, sometimes the file I get has a line break between named and "name" and sometimes it has a line break and a tab between them.
i.e
named "name 1" -- Works
named
"name 2" -- Doesn't work
named
[tab]"name 3" -- Doesn't work
Can anyone tell me what I am doing wrong?