O'Reilly Answers is a community site for sharing knowledge, asking questions, and providing answers that brings together our customers, authors, editors, conference speakers, and Foo (Friends of O'Reilly). More »
If you want to instantiate a regular expression object or otherwise compile a regular
expression so you can use it efficiently throughout your
application, try one of t...
Traditional grep tools apply your regular expression to one line of text at a time,
and display the lines matched (or not matched) by the regular
expression. If you hav...
If you want to replace all matches of the regular exp​ression before with the replacement
text after, try one of the following examples:C#You can use the static call when you process on...
Suppose you have an HTML file in which various passages are marked as bold with <b> tags. You want to find all numbers marked as bold. If some bold text contains multiple numbers, you want to ma...