[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]
Regexp
Hi,
I'm newbie in regular expression and perl.
I had a problems, it's related with complex regular expression.
Here is the following my small program:
#!/usr/bin/perl
$_ = '>jds kjdjk<sdsd>sdsd<sdsdsd> test wib ass <sfsf sf> q<sfsfqsf>q';
$x = m/\>.*?wib.*?</i;
print "$&";
The program will display:
>jds kjdjk<sdsd>sdsd<sdsdsd> test wib ass <
In the fact I want my program will display:
> test wib ass <
I didn't understand why the display like that.
Could you tell me the right answer ?
Thank's in advance.
Dayen
get your free gURLmAIL at http://www.gURLmAIL.com
- Follow-Ups from:
-
Hugo <hv@crypt.compulink.co.uk>
[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]