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: # # USE .NET FLAGS: i
x
m
s
 Help SHOW MATCH ARRAY:    EXPLAIN:  OPTIMIZE:    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

If that is not enough, take it from the American Tort Reform Association and the U.S. Chamber of Commerce who labeled Missouri's Supreme Court a "{judicial hellhole->http://www.atra.org/reports/hellholes/}" and gave it a "dishonorable mention" for its recent radical decisions. As the U.S. Chamber put it, "{An unfair legal system sucks the life out of a state's economy. It affects business expansion, it affects jobs and it takes money out of consumers' pockets.->http://www.instituteforlegalreform.com/states/harrispoll.cfm?state=MO}"


RESULTS:

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

Raw Match Pattern:
\"{(.*?)->(.*?)}\"

Raw Replace Pattern:
<a href="$2">$1</a>

VB.NET Code Example:

Imports System.Text.RegularExpressions
Module Module1
  Sub Main()
    Dim sourcestring as String = "replace with your source string"
    Dim replacementstring as String = "<a href=""$2"">$1</a>"
    Dim matchpattern as String = "\""{(.*?)->(.*?)}\"""
    Console.Writeline(regex.Replace(sourcestring,matchpattern,replacementstring))
  End Sub
End Module


$sourcestring after replacement:
If that is not enough, take it from the American Tort Reform Association and the U.S. Chamber of Commerce who labeled Missouri's Supreme Court a <a href="http://www.atra.org/reports/hellholes/">judicial hellhole</a> and gave it a "dishonorable mention" for its recent radical decisions. As the U.S. Chamber put it, <a href="http://www.instituteforlegalreform.com/states/harrispoll.cfm?state=MO">An unfair legal system sucks the life out of a state's economy. It affects business expansion, it affects jobs and it takes money out of consumers' pockets.</a>