|
|
 |
FN-FORUM: ereg patterns
date posted 16th August 2004 09:04
Hi all,
Is anyone any good with the ereg/eregi patterns? I'm trying to use
them in a PHP script that will replace *words* to *words*. (And
similar for italics and underlining - though I should be able to adapt
it for that.) L=Basically, like mozilla does in messages. It needs to
only replace text that has a space before the first '*' and then a
single word between the two *'s and then a space after the final '*'.
I think that makes sense.. I ask because I expect this will take
someone else a few minutes/seconds to work out, but will most probably
take me all day. There are entire books on this subject right? (I
gotta say - gmail's spell checker is quite impressive - thanks Tony).
Thanks for any help,
Joe.
|
 |
|