Re: Regex Expressions
your right, I got it working correctly. Thanks! Can that same code segment for the substitution be used on lets say a string with quotation marks? Cause I would like to just use it again but for a string that has something like
<some element url = "www.gosomewhere.com" type = "some type" />
and use the expression you gave me to grab the url between the first set of parenthesis. Would I have to encode the quotation marks though?
$string =~ s/"(.*?)"/$1/is; #wouldn't work like this, would it?
|