WANTED: Description of V8 regular expressions

Jonathan Sweedler cjosta at tasu77.UUCP
Thu Mar 23 21:58:17 AEST 1989


Does anyone have a description of the syntax for V8 regular expressions.
I am trying to use regular expressions in perl, but the man page does not
give a complete description of R.E., it just says that they are the same
as the V8 R.E.

Specifically, I am looking for a way to match X occurances of a
character.  I read the 'ed' manual, and it said to use the '\{', '\}'
syntax, but I tried this in perl and it didn't work.  i.e. I did
's/d\{3\}/dog/;' to change 'ddd' into 'dog' (please don't tell me I can
just do 's/ddd/dog/;' !!).

I assume V8 uses a different syntax (or doesn't have this functionality).
If anyone has a complete description of the V8 R.E. I would appreciate it
if you could send it to me.  Thanks in advance.
Jonathan Sweedler  ===  National Semiconductor Israel
UUCP:    ...!{amdahl,hplabs,decwrl}!nsc!taux01!cjosta
Domain:  cjosta at taux01.nsc.com



More information about the Comp.unix.questions mailing list