• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: RegEx question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: RegEx question
      • From: Christopher Nebel <email@hidden>
References: 
 >RegEx question (From: Wim Melis <email@hidden>)

  • Prev by Date: RegEx question
  • Next by Date: Panther bug: 'missing value' for modification date??
  • Previous by thread: RegEx question
  • Next by thread: Re: RegEx question
  • Index(es):
    • Date
    • Thread