Re: Regex behavior in command line

2012-06-07 Thread Jon Forsyth
I overlooked the missing single quotes, Thanks! -Jon

Re: Regex behavior in command line

2012-06-01 Thread Rob Dixon
On 31/05/2012 18:23, Jon Forsyth wrote: I'm using the following line in Terminal, on OSX Lion, but I can't seem to match parentheses '()': perl -n -e 'print if(/\\(Submit\\)/)' visits/admin_add.ctp I tried with one backslash in front of each '(' ')' as well to no avail. If I remove the '\'s

Re: Regex behavior in command line

2012-05-31 Thread Shawn H Corey
On 12-05-31 01:23 PM, Jon Forsyth wrote: Hello, I'm using the following line in Terminal, on OSX Lion, but I can't seem to match parentheses '()': perl -n -e 'print if(/\\(Submit\\)/)' visits/admin_add.ctp I tried with one backslash in front of each '(' ')' as well to no avail. If I remove t

Regex behavior in command line

2012-05-31 Thread Jon Forsyth
Hello, I'm using the following line in Terminal, on OSX Lion, but I can't seem to match parentheses '()': perl -n -e 'print if(/\\(Submit\\)/)' visits/admin_add.ctp I tried with one backslash in front of each '(' ')' as well to no avail. If I remove the '\'s and '()' the match is printed like s