Slight modification - I've realised I don't need the /m on the regexp. Works the same without.
andy.
update: thanks again. I've realised that I was being stupid - the onset of tunnel vision. split was doing exaclty what it ought, as your example shows, but the regexp was returning extra blank lines.
In reply to Re: Re: Split and empty strings
by andye
in thread Split and empty strings
by andye
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |