[PHP] Re: hello and a question

2001-08-21 Thread jimw
Kevin Keeler [EMAIL PROTECTED] wrote: $entry_hidden = eregi_replace(hide.+/hide,hidden,$entry); try: $entry_hidden = preg_replace(|hide.+?/hide|i,hidden,$entry); .+ is 'greedy', meaning it consumes as much as text as it can. with perl-like regular expressions, you can add a trailing ? which

Re: [PHP] Re: hello and a question

2001-08-21 Thread Kevin Keeler
yay. this preg business methinks needs some more looking into. ;) everywhere I've looked theres always one or 2 people proselytizing its greatness. my late-night boredom reading of O'Reilly's _Perl_ (sans computer or pause) left little behind little information in my head, not surprisingly.