[Home]
[Edit this page]
[Recent Changes]
[Special Pages]
[Help]
regular expression
Examples of patterns include:-
* Though with the advent of unicode the definition of alphanumeric is somewhat changed.
[Edit this page] [Page history] [What links here] [Discuss this topic] [Printer Friendly]
regular expression
Regular Expression
A regular expression is a pattern that can be matched against data (e.g. text) to see if it matches. Regular expressions can also capture data from what they are matching.Examples of patterns include:-
- \d+ matches one or more digits
- \w matches one alphanumeric character *
- (-?)([.\w]*)\(([+\-]?[.\w]*)x([.\w]*[+\-]?[.\w]*)\)\^([+\-]?[.\w]+) matches a mathematical function in the form (ax+b)^n
* Though with the advent of unicode the definition of alphanumeric is somewhat changed.
[Edit this page] [Page history] [What links here] [Discuss this topic] [Printer Friendly]
