Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hi there all,
I need to split a string at dots (.) that are not between square braces, or not immediately after two patterns ( Cf. or \w\d+.\d+ pattern, like A432.23 ).
If the sample is The fox did it[ at 12.23 ] well, Cf. 23 A423.23. The swallow was even better , then the split should happen at '23. The' substring. Actually, this sample covers the typo cases I have encountered.Any idea is appreciated.
salmonix
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Regexp - match if not between [ ]
by moritz (Cardinal) on May 30, 2011 at 14:02 UTC | |
Re: Regexp - match if not between [ ]
by JavaFan (Canon) on May 30, 2011 at 14:08 UTC | |
by Anonymous Monk on May 30, 2011 at 14:28 UTC | |
Re: Regexp - match if not between [ ]
by AnomalousMonk (Archbishop) on May 30, 2011 at 15:34 UTC | |
by Anonymous Monk on May 30, 2011 at 20:06 UTC | |
Re: Regexp - match if not between [ ]
by BrowserUk (Patriarch) on May 30, 2011 at 14:18 UTC | |
by Anonymous Monk on May 30, 2011 at 14:26 UTC | |
by BrowserUk (Patriarch) on May 30, 2011 at 15:53 UTC |
Back to
Seekers of Perl Wisdom