Possible Duplicate:
How to ignore whitespace in a regular expression subject string?
I am using the following:
"<a href=\"(.+?)\">(.+?)</a>"
to match:
"<a href="x">xx</a>"
However sometimes my users are entering the following:
"<a href="x" >xx</a>"
"<a href="x">xx</a>"
"<a href="x" >xx</a>"
How can I modify the regex so that it matches on one or many spaces in the three strings above?