http://www.perlmonks.org?node_id=907316

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