Jan 24, 2004, 9:27 AM
Post #1 of 6
I'm trying to match somthing globally in a string. What I need to do is match anything that starts with a ':' and ends with a '<br>'. It should not car about any thml tags that are in between. Right now I use:
$line =~ s/^(: [^<]*)/<span class=quote>$1<\/span>/;
This matches anything until it hits a '<'.
What I need is to match anything until it hits a '<br>'. I tried [^<br>] but I think that means match either <, or b, or r, or >.
How can I do this?