yusy has asked for the wisdom of the Perl Monks concerning the following question:
Could someone teach me how it works when 's' and 'm' both appear in this regexp?
Thanks
$data=~m/(.*?$string(?:[^\n]*\n){1,10})/ismo
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: regexp question
by JavaFan (Canon) on Jul 20, 2011 at 20:37 UTC | |
|
Re: regexp question
by kennethk (Abbot) on Jul 20, 2011 at 20:39 UTC | |
|
Re: regexp question
by cdarke (Prior) on Jul 21, 2011 at 07:14 UTC | |
|
Re: regexp question
by onelesd (Pilgrim) on Jul 20, 2011 at 22:05 UTC |