• 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: Japanese backslash
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Japanese backslash


  • Subject: Re: Japanese backslash
  • From: email@hidden
  • Date: Mon, 23 Apr 2007 20:34:30 +0200

Good point, indeed, but not really a solution if you're working with
XML. In sed, an ampersand ("&") appearing in the replacement string is
replaced by the string matching the regular expression. The special
meaning of the ampersand can only be suppressed by preceding it by a
backslash. So if you want to replace all instances of "&" (eg. XML
ampersand) with a literal ampersand you still have to escape it.

Fabian

On 4/23/07, Steven D. Majewski <email@hidden> wrote:

for sed, it's a lot simpler to use something other than a slash as the
separator character, then you don't need to escape the slash. Example:

sed -e 's%<key>Title</key>%%g'
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
  • Follow-Ups:
    • Re: Japanese backslash
      • From: "Mark J. Reed" <email@hidden>
  • Prev by Date: Re: Japanese backslash [SOLVED]
  • Next by Date: Darlene Duffie/DCS/MOORE is out of the office.
  • Previous by thread: Re: Japanese backslash
  • Next by thread: Re: Japanese backslash
  • Index(es):
    • Date
    • Thread