ultranerds has asked for the wisdom of the Perl Monks concerning the following question:
my $test = qq|==Getting There== testing [ref]bla bla bla [[http://www.google.com]] <b> test </b> and [ +[http://www.google.com\|testing]] [/ref] hhh testing [ref]bla bla bla an[/ref] hhh |; while ($test =~ m%\[ref\](.*)\[/ref\]%gix) { print "FOO, $1 \n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Regex to match between [ref] and [/ref]
by Anonymous Monk on Jul 17, 2009 at 10:27 UTC | |
by ultranerds (Hermit) on Jul 17, 2009 at 10:31 UTC | |
by tinita (Parson) on Jul 17, 2009 at 11:05 UTC | |
|
Re: Regex to match between [ref] and [/ref]
by Anonymous Monk on Jul 17, 2009 at 10:34 UTC | |
by ultranerds (Hermit) on Jul 17, 2009 at 10:43 UTC | |
by ultranerds (Hermit) on Jul 17, 2009 at 13:00 UTC | |
by ultranerds (Hermit) on Jul 17, 2009 at 13:31 UTC | |
|
Re: Regex to match between [ref] and [/ref]
by JavaFan (Canon) on Jul 17, 2009 at 10:28 UTC | |
by ultranerds (Hermit) on Jul 17, 2009 at 10:37 UTC | |
by JavaFan (Canon) on Jul 17, 2009 at 10:41 UTC |