[PHP-DEV] Some help with RegExp, please

2003-03-11 Thread fLIPIS
Hi all. I'm trying to deal with Regular Expressions, but somehow it is getting more difficult. I´m trying to do the folowing: Read a text and get all of the PHP code out of it, highlight it and then print all in nice HTML. I'm using this to get the PHP code: ereg(\?.*\?,$Text,$PHP_code); It

[PHP-DEV] Help with ereg()

2003-03-11 Thread fLIPIS
Hi all. I'm trying to deal with Regular Expressions, but somehow it is getting more difficult. I´m trying to do the folowing: Read a text and get all of the PHP code out of it, highlight it and then print all in nice HTML. I'm using this to get the PHP code: ereg(\?.*\?,$Text,$PHP_code); It