Myregextester.com is the premier online regular expressions tester that allows visitors to construct, test, and optimize regular expressions.

 Click here to manually set the number of rows for match/replacement textareas. Regex Cheat Sheet Regex Tutorials Regex Book

URL SOURCE:   FILE SOURCE:

MATCH PATTERN:

REPLACEMENT PATTERN:

OPERATION: # # FLAGS: i
x
m
s
 Help SHOW MATCH ARRAY:    EXPLAIN:    SHOW CODE: PHP
ASP
VB.NET
C#.NET
Java
JS
DELIM: HIGHLIGHT MATCHES:      GEN SAMPLES:   
    Save example     Help     FROM: TO: 

PASSWORD RESTRICTIONS:

Allow only these characters:  (any character)  ]
At Least  Total Characters
No More Than   Total Characters
At Least  Lowercase Characters (a-z)
At Least  Uppercase Characters (A-Z)
At Least  Numeric Characters (0-9)
At Least  Special Characters in [^a-zA-Z0-9]  ]
Disallow sequential alphanumeric sequences of or more (i.e. 123... abc... ABC...)
Disallow repeating characters of or more (i.e. 11... aa... AA... %%...)

WORD LIST:



SOURCE TEXT:

HIGHLIGHTED MATCHES:

Select All (to copy etc.)
CAPTURE GROUPS Help
0
 
1
 
2
 
3
 
4
 
5
 
6
 
7
 
8
 
9
 
10
 
11
 
12
 
13
 
14
 
15
 
16
 
17
 
18
 
19
 
20

Berry, Brent. (2006). What accounts for race and ethnic differences in  Berry, Brent. parental financial transfers to adult children in the United States? Journal of Family Issues 37:1583-1604.

RESULTS:

Select All (to copy etc.)
Execution Time(sec.):
0.000022

Raw Match Pattern:
((([^\(0-9]+)))([ ])+([\(\)]{1})([0-9]+[a-z]?)([\(\)]{1})(\.)([ ])+([^\.\?]+)(\.)([ ])+([^0-9]+)([ ])+([A-Z]?[0-9]+[A-Z]?)(\:)([A-Z]*[0-9\,]+[A-Z]*)([\-–—]+)([A-Z]*[0-9\,]+[A-Z]*)(\.)

Match Pattern Explanation:

VB.NET Code Example:

Imports System.Text.RegularExpressions
Module Module1
  Sub Main()
    Dim sourcestring as String = "replace with your source string"
    Dim re As Regex = New Regex("((([^\(0-9]+)))([ ])+([\(\)]{1})([0-9]+[a-z]?)([\(\)]{1})(\.)([ ])+([^\.\?]+)(\.)([ ])+([^0-9]+)([ ])+([A-Z]?[0-9]+[A-Z]?)(\:)([A-Z]*[0-9\,]+[A-Z]*)([\-–—]+)([A-Z]*[0-9\,]+[A-Z]*)(\.)")
    Dim m As Match = re.Match(sourcestring)
    For groupIdx As Integer = 0 To m.Groups.Count - 1
      Console.WriteLine("[{0}] = {1}", re.GetGroupNames(groupIdx), m.Groups(groupIdx).Value)
    Next
  End Sub
End Module


$matches Array:
(
    [0] => Berry, Brent. (2006). What accounts for race and ethnic differences in  Berry, Brent. parental financial transfers to adult children in the United States? Journal of Family Issues 37:1583-1604.
    [1] => Berry, Brent.
    [2] => Berry, Brent.
    [3] => Berry, Brent.
    [4] =>  
    [5] => (
    [6] => 2006
    [7] => )
    [8] => .
    [9] =>  
    [10] => What accounts for race and ethnic differences in  Berry, Brent
    [11] => .
    [12] =>  
    [13] => parental financial transfers to adult children in the United States? Journal of Family Issues
    [14] =>  
    [15] => 37
    [16] => :
    [17] => 1583
    [18] => -
    [19] => 1604
    [20] => .
)