php regex - splitting strings - one output form

MrInfect

New Member
I'm wondering a good way of splitting strings by a \[code\]|\[/code\] delimiter if the input strings could be of the following form:\[code\]"foo, bar""foo ,bar""foo,bar""foo , bar""foo bar""foo,,bar"\[/code\]So the only possible outputs strings are as:\[code\]"foo|bar""foo|bar|other|here"\[/code\]Independently of how many terms are within the input string.Any thoughts would be appreciated!
 
Back
Top