steventhegood
Registered
I'm horrified. /bin/bash 3.2.17 that came with a brand new iMac
does not recognize subexpressions in regular expressions.
This is recognized.
[[ happyFeet =~ 'happyFeet' ]] && echo recognized
This is NOT. Which makes it impossible to use the array BASH_REMATCH.
[[ happyFeet =~ 'happy(Feet)' ]] || echo not recognized
I can hardly believe this. I'd prefer to believe that I am doing something
wrong, but bash behaves properly on Linux.
Help?
does not recognize subexpressions in regular expressions.
This is recognized.
[[ happyFeet =~ 'happyFeet' ]] && echo recognized
This is NOT. Which makes it impossible to use the array BASH_REMATCH.
[[ happyFeet =~ 'happy(Feet)' ]] || echo not recognized
I can hardly believe this. I'd prefer to believe that I am doing something
wrong, but bash behaves properly on Linux.
Help?