View Single Post
  #7 (permalink)  
Old 05-21-2008, 07:34 PM
John_L John_L is offline
Newbie
 
Join Date: May 2008
Posts: 10
Credits: 0
Rep Power: 0
John_L is on a distinguished road
Default 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?
Reply With Quote