Re: extract variables from expression



alexjaquet@xxxxxxxxx wrote:
Does somebody know how to extract some variables from this expression :

[quote=alexandre]Ceci est un testttttt[/quote]

I want to extract the values alexandre and the text "Ceci est un test"
and I can have multiple quoted expression :
[quote=alexandre]Ceci est un testttttt[/quote]
[quote=tester]response[/quote]

You can use a regular expression.

perldoc perlrequick
perldoc perlretut
perldoc perlre

Please read the posting guidelines for this group: http://groups.google.com/group/comp.lang.perl.misc/msg/b1b69d3cbfeaa440

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
.