<p>Is there an easy way of using the <code>RegularExpressionValidator</code> control while ignoring white space?</p>

<p>I can use a custom validator control with <code>Regex</code> and <code>IgnorePatternWhitespace</code>, but it would be good to just have an option in the <code>RegularExpressionValidator</code> control.</p>

[{'answer_id': 57325, 'author': 'Joel Coehoorn', 'author_id': 3043, 'author_profile': 'https://Stackoverflow.com/users/3043', 'pm_score': 0, 'selected': False, 'text': "<p>Remember that the regular expression validator want to validate with javascript, too, so you want to make sure your expression will work with both the .Net and javascript regex engines.  That means that using .IgnorePatterWhitespace isn't the best idea.</p>\n"}, {'answer_id': 57443, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 3, 'selected': True, 'text': '<p>Surround your regex with</p>\n\n<blockquote>\n  <p>(?x:   )</p>\n</blockquote>\n\n<p>so "a b c" becomes "(?x:a b c)</p>\n'}]
['https://Stackoverflow.com/questions/57322', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/4092/']