Course Technology Cengage Learning New Perspectives on HTML, CSS, and JavaScript, 6th Edition
Tutorial 13

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 select a predefined regular expression or create one of your own. Click the Pattern Test button. If a matching pattern is found, the Pattern Test Result box will display match and the matching substring in the text string will be highlighted.

Enter a text string
Regular expression codes
Select a predefined regular expression
Or enter one directly
Pattern Test Result