Hello, all. Can someone give me the code to find this pattern in a string?:
<img (anything) ad (anything) >
I need the search to be case insensitive, and to include carriage returns and such in it. What I have currently does not work:
/<img[^>]+ad>/im
The way I translate this is that it's telling Perl to start a regular expression search (/) and find a string of "<img" followed by anything that is not a ">" one or more times ([^>]+) followed by the string "ad>". Then it's telling Perl to end the regular expression search (/) and tell it to be case insensitive (i) and to continue searching even if it encounters a carriage return.
Any help is appreciated!
Furry
<img (anything) ad (anything) >
I need the search to be case insensitive, and to include carriage returns and such in it. What I have currently does not work:
/<img[^>]+ad>/im
The way I translate this is that it's telling Perl to start a regular expression search (/) and find a string of "<img" followed by anything that is not a ">" one or more times ([^>]+) followed by the string "ad>". Then it's telling Perl to end the regular expression search (/) and tell it to be case insensitive (i) and to continue searching even if it encounters a carriage return.
Any help is appreciated!
Furry