Re: [PHP] String /pattern formatting extraction question

2006-04-10 Thread Richard Lynch
On Mon, April 10, 2006 7:40 am, Andy wrote: > Hi to all, > > I have the following pattern for a string: > > text1 /ptext2 /otext3 > > Now, I want to extract the text by "patterns" from this string by the > following rule: > > no pattern -> text1 (what is before /o or /p) > /p -> text2 (what is afte

[PHP] String /pattern formatting extraction question

2006-04-10 Thread Andy
Hi to all, I have the following pattern for a string: text1 /ptext2 /otext3 Now, I want to extract the text by "patterns" from this string by the following rule: no pattern -> text1 (what is before /o or /p) /p -> text2 (what is after /p) /o -> text3 (what is after /o) The order betweeen /o