Numerical Methods at work

Disclaimer:
Permission to use, copy, and distribute this software, and It’s documentation for any non-commercial purpose is hereby granted without fee, provided: THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL Henrik Vestermark, BE LIABLE FOR ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

Regular expression testing App

This App allows you to test regular expressions before using them to check if they have the desired outcome. Simply enter your regular expression in the input field, add any modifiers, and type in the text line you want to check for matching. Hit the check button and the Matching result list any matching patterns.

Regular Expression vs. 1.4 Type in your regular expression for testing: 
//
//
Enter your test string(s) for matching:
Matching result:



  • Result
  • Help

Modifiers

Modifiers are used to perform case-insensitive and global searches:

Modifier

Description

i

Perform case-insensitive matching

g

Perform a global match (find all matches rather than stopping after the first match)

m

Perform multiline matching

Brackets

Brackets are used to find a range of characters:

Expression

Description

[abc]

Find any character between the brackets

[^abc]

Find any character NOT between the brackets

[0-9]

Find any character between the brackets (any digit)

[^0-9]

Find any character NOT between the brackets (any non-digit)

(x|y)

Find any of the alternatives specified


Quantifiers

Quantifier

Description

n+

Matches any string that contains at least one n

n*

Matches any string that contains zero or more occurrences of n

n?

Matches any string that contains zero or one occurrence of n

n{X}

Matches any string that contains a sequence of X n's

n{X,Y}

Matches any string that contains a sequence of X to Y n's

n{X,}

Matches any string that contains a sequence of at least X n's

n$

Matches any string with n at the end of it

^n

Matches any string with n at the beginning of it

?=n

Matches any string that is followed by a specific string n

?!n

Matches any string that is not followed by a specific string n

?:n

Matches n but doesn´t remember it.


Meta characters

Meta characters are characters with a special meaning:

Meta character

Description

.

Find a single character, except newline or line terminator

\w

Find a word character. Same as [_a-zA-z0-9]

\W

Find a non-word character. Same as [^_a-zA-Z0-9]

\d

Find a digit. Same as [0-9]

\D

Find a non-digit character. Same as [^0-9]

\s

Find a whitespace character

\S

Find a non-whitespace character

\b

Find a match at the beginning/end of a word

\B

Find a match, not at the beginning/end of a word

\0

Find a NUL character

\n

Find a new line character

\f

Find a form feed character

\r

Find a carriage return character

\t

Find a tab character

\v

Find a vertical tab character

\xxx

Find the character specified by an octal number xxx

\xdd

Find the character specified by a hexadecimal number dd

\uxxxx

Find the Unicode character specified by a hexadecimal number xxxx

Email me if you encounter any problems at hve@hvks.com  

Rate this page

Click on the stars below to rate this page

Low
a Star
a Star
a Star
a Star
a Star
High


Corrections:
19-Nov-2020 Vs 1.4 Added multiline matching
17-Nov-2020 Vs 1.3 Fix a bug in reporting illegal regular expressions
23-Dec-2019 Vs 1.2 Fix a bug in retrieving the history of regular expressions
28-Oct-2019 Vs 1.1 Redesign the GUI Interface
25-Apr-2018 Vs 1 Initial release