Re: Japanese backslash
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