KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have a large regular expression and I've turned on IgnorePatternWhitespace so I can make it more readable. My problem is that I want to match a literal space character. What's the best way to do that? An example: Regex myRegex = new Regex(@" (?> <table[^>]*> ) # Find a table (?> .*?<tr> ) # Find the first row (?> .*?<th> ) # Find the first header column My phrase # Look for our key phrase etc. ", RegexOptions.IgnorePatternWhitespace); In the above example, "My phrase" should include a space.
Tags (comma-separated)
Save Edits
Cancel