Mailinglist Archive: opensuse (818 mails)

< Previous Next >
Re: [opensuse] Java script assistance (slightly OT)
  • From: Per Jessen <per@xxxxxxxxxxxx>
  • Date: Thu, 22 Sep 2011 12:01:34 +0200
  • Message-id: <j5f11t$co4$1@saturn.local.net>
David Haller wrote:

Hello,

On Thu, 22 Sep 2011, Per Jessen wrote:
David Haller wrote:
Inside '' you only need to escape ' itself, which doesn't work, as \
has no special meaning either inside of ''.
Workaround: 'foo'"'"'bar' or 'foo'\''bar'

Inside "" you have to IIRC escape !"()`` and $ (the ! only if you've
enabled history substitution (set -H).

With sed, I always need to escape +() inside '' to get them to work.
Am I doing something wrong?

Depends on what meaning you want the +() to have. Read 'man 7 regex'.
As stated, sed uses basic regex, i.e. +() have no special meaning

Ah, that explains it. Thanks.



--
Per Jessen, Zürich (15.7°C)

--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >