in reply to Re^2: Pattern matching and deriving the data between the "(double quotes) in HTML tag
in thread Pattern matching and deriving the data between the "(double quotes) in HTML tag
It's good that you've found a solution to your problem, but you should realize that the /g match modifier in the
$timeLimit =~ m/startTime="(.*?)"/g;
statement does nothing more than pose a potential pitfall for future code, either in execution or development. Why leave it in?
Also, please pay attention to other replies advocating an XML-parsing approach to what is essentially XML.
And if you choose to stick with regexes, please consider kcott's wise advice here about using ([^"]*) to capture the unescaped body of a double-quoted string.
Give a man a fish: <%-{-{-{-<
|
|---|