Subject: expr "foo" : '/'
To: None <current-users@netbsd.org>
From: Andrew Cagney <cagney@mac.com>
List: current-users
Date: 02/06/2002 11:36:01
Hello,

This is one for the POSIX police.  Is:

	$ expr "foo" : '/'
	expr: syntax error

correct?  The java scripts contains the equivalent to the above.  What 
makes it interesting is:

	$ expr "foo" : '\/'
	0

and the documented example:

	$ expr //a : '.*/\(.*\)'
	a

You might need to escape ``/''.  1.5.2 userland.

enjoy,
Andrew