[PHP] scan a text string to pick up certain words

2004-08-11 Thread Alex Shi
Hi All, I guess regex can do the trick but I don't know much about regex :(( Here is what I want: Say a text string in which there're several words enclosed by { and }, for example {hellow}. I need to pick up each of the words like this and print them or do some processing one by one. Can any

Re: [PHP] scan a text string to pick up certain words

2004-08-11 Thread Justin Patrin
On Wed, 11 Aug 2004 18:07:57 -0400, Alex Shi [EMAIL PROTECTED] wrote: Hi All, I guess regex can do the trick but I don't know much about regex :(( Here is what I want: Say a text string in which there're several words enclosed by { and }, for example {hellow}. I need to pick up each of the

Re: [PHP] scan a text string to pick up certain words

2004-08-11 Thread Alex Shi
It works the way as supposed :) Thanks! On Wed, 11 Aug 2004 18:07:57 -0400, Alex Shi [EMAIL PROTECTED] wrote: Hi All, I guess regex can do the trick but I don't know much about regex :(( Here is what I want: Say a text string in which there're several words enclosed by { and }, for