in reply to Re: Regex and a pseudo-XML tag
in thread Regex and a pseudo-XML tag
To show a simpler example, consider:m/<blank\s+title\s*=\s*(["'])?(.*?)\1\s*>/ --
If you try it with $ instead of \, it doesn't work.$_ = "here are ::framed words:: to capture"; if ( /(::)(.*?)\1/ ) { print "text framed by $1 was <$2>\n"; }
|
|---|