Re: RegEx question
Re: RegEx question
- Subject: Re: RegEx question
- From: Walter Ian Kaye <email@hidden>
- Date: Thu, 19 Feb 2004 04:00:08 -0800
At 12:03p +0100 02/19/2004, Wim Melis didst inscribe upon an
electronic papyrus:
I'd like to build a regular expression search (using Satimage osax) that
finds all greater-than en less-than characters that are NOT part of a
matching pair of HTML tags, and replace then with the appropriate html
codes.
Any idea how to accomplish this with regular expressions? I'd love to
avoid a complex and slow parsing script.
Less than would be easy to find: "< " (followed by a space).
Greater than would be trickier; I was first thinking " >" (preceded
by a space) but then I remembered that that's valid for the end of a
tag, and you wouldn't want those matched. That's the killer right
there.
-boo
_______________________________________________
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.