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.

[PHP] Re: hello and a question

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