Re: http: grep syntax for use in Tex-Edit
Re: http: grep syntax for use in Tex-Edit
- Subject: Re: http: grep syntax for use in Tex-Edit
- From: Emmanuel <email@hidden>
- Date: Wed, 7 May 2003 12:18:33 +0200
>
Just wondering if anyone has any regex code for pulling out http:// links (or ftp://, etc.) and formatting them as href tags within Tex-Edit Plus.
>
>
I know there's code out there somewhere and parsing through the grep for breaking down a URI
>
>
^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?
>
>
provided from http://www.ietf.org/rfc/rfc2396.txt is a great starting point but doesn't seem to work natively.
At first sight his Regular Expressions looks as it had too many "?", so I'm afraid it'll match many things including the empty string ...
In case you don't know, an easy way of testing and practicing Regular Expressions is to use the Find (or the Enhanced Find) panel of Smile, the cool script editor for AppleScript that my company is proud to make available to the AppleScript community.
URI:
<
http://www.satimage-software.com/en/softx.html#smile>
Best regards,
Emmanuel
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.