in reply to Regex question
() - used to store the value of the match and very useful in substitution where you can use matched words using $1,$2 etc. Not very useful the way you have it in your code i.e. not useful for checking if a pattern exist
In your example the last line matched on [] because there was a h/p!
It did not match for () because it was looking asp/html as proper words.
|
---|