I'm ashamed to POST this question.... in my defense I still have the hangover from hell..
Anyway I need to split a string on :, however sometimes the string will contain an escaped : like \: in which case this would not be split on - does that make sense
So if i had
$string = '111111111:22222\:2222:333333333:4444444';
And I split it I would have 111111, 222222, 333333, 444444 etc...
note to self - stop drinking when got to work...
In reply to Easy Split by ropey
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |