Regular Expressions

Regular Expressions are text strings that define a pattern of characters and symbols. In this demo you can use regular expressions to perform pattern matching on a text string you specify. Enter the text string in the first text input box, then either select a predefined regular expression or create one of your own choosing. Click the Pattern Test button. If a matching pattern is found, the Pattern Test Result box will display match and the matching text in the test string will be highlighted.

Enter a text string
Regular expression codes
Select a predefined regular expression
Or enter one directly
Pattern Test Result
Carey, P. New Perspectives on HTML and XHTML, Course Technology: Boston, 2005.