in reply to Re: Regex probleme, how memorize (match)? with question mark ?
in thread Regex probleme, how memorize (match)? with question mark ?
Nice regex but you don't need the trailing >. It adds nothing and will cause something that like mailto:foo@bar.com" > to fail. Either drop it or allow for 0 or more spaces with a \s*
(/href="mailto:([^"]*)">/ # may fail (/href="mailto:([^"]*)"\s*>/ # allows legal spaces (/href="mailto:([^"]*)"/ # best option, just match # what we want
cheers
tachyon
s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: Regex probleme, how memorize (match)? with question mark ?
by epoptai (Curate) on Jul 07, 2001 at 00:21 UTC | |
by tachyon (Chancellor) on Jul 07, 2001 at 00:49 UTC | |
by epoptai (Curate) on Jul 07, 2001 at 02:27 UTC | |
by tachyon (Chancellor) on Jul 07, 2001 at 04:21 UTC | |
by bobione (Pilgrim) on Jul 07, 2001 at 05:33 UTC | |
Re: Re: Re: Regex probleme, how memorize (match)? with question mark ?
by bobione (Pilgrim) on Jul 07, 2001 at 02:07 UTC |