On Thu, Jul 24, 2008 at 7:50 PM, Michael B Allen <[EMAIL PROTECTED]> wrote:
> But it would be nice to exclude those end-of-sentence punctuation from
> the capture output. I tried the following minimalistic expression just
> to try and get the trailing condition right I'm not able to
> distinguish between a dot that is part of the URL and a period at the
> end.

Got it. I just needed to negate the end-of-sentence punctuation character class.

This seems to be handling all cases properly:

  $expr = '([a-zA-Z0-9]{1,10}://[a-zA-Z0-9.-]+[\p{L}0-9"!#$%&\\()+,\\./:;[EMAIL 
PROTECTED])[^,\\.?!:;"\'\\s]';

Thanks,
Mike

-- 
Michael B Allen
PHP Active Directory SPNEGO SSO
http://www.ioplex.com/
_______________________________________________
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk

NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com

Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php

Reply via email to