Forum Discussion
PBruce
Staff
12 years agoLooks right to me, though if you've wrapped this regex in parenthesis, it itself will be the first subexpression.
But this test proves that you've got the right expression: http://regexr.com?38981
If you still have trouble, try changing the subexpression value from $1 to $2, just to see if it is being caught as a subexpression.
But this test proves that you've got the right expression: http://regexr.com?38981
If you still have trouble, try changing the subexpression value from $1 to $2, just to see if it is being caught as a subexpression.