Benedict White has asked for the wisdom of the Perl Monks concerning the following question:
For reasons too long to explain, our web servers have changed version of PHP which now means we need to use regular expressions in the perl format rather than the posix. We have had major problems that have been solved but now need help with some regex.
The original Posix regex was (using php function erigi which is case insensitve :
This is the input text:\\[table\\]([^\\[]+)\\[/table\\]
I need it to match on the [table] and the [/table] and extract the data inbetween, this passed to another function to construct the table.[b]South Coast[/b] <br /> [table] <br /> Boat Link Asking Price Lying<br /> Heritage [url=http://www.someurl.co.uk/home/FS_heritage] +Detail on Heritage [/url] Warsash<br /> Firestorm Too [url=http://www.someurl.co.uk/home/FirestormToo] Deta +il on Firestorm Too [/url] Plymouth<br /> [/table]<br />
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Regular expression question
by Neighbour (Friar) on Sep 29, 2011 at 13:25 UTC | |
Re: Regular expression question
by pvaldes (Chaplain) on Sep 29, 2011 at 13:57 UTC | |
by morgon (Priest) on Sep 29, 2011 at 14:03 UTC | |
by Benedict White (Novice) on Sep 30, 2011 at 08:18 UTC | |
Re: Regular expression question
by JavaFan (Canon) on Sep 30, 2011 at 09:14 UTC |
Back to
Seekers of Perl Wisdom