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


RESULTS:

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

Raw Match Pattern:
(\\(\\d{1,3}\\)([\\s\\S]*?)(?=(\\.END|\\(\\d{1,3}\\))))




Match Pattern Explanation:
The regular expression:

(?-imsx:(\\(\\d{1,3}\\)([\\s\\S]*?)(?=(\\.END|\\(\\d{1,3}\\))))


)

matches as follows:
  
NODE                     EXPLANATION
----------------------------------------------------------------------
(?-imsx:                 group, but do not capture (case-sensitive)
                         (with ^ and $ matching normally) (with . not
                         matching \n) (matching whitespace and #
                         normally):
----------------------------------------------------------------------
  (                        group and capture to \1:
----------------------------------------------------------------------
    \\                       '\'
----------------------------------------------------------------------
    (                        group and capture to \2:
----------------------------------------------------------------------
      \\                       '\'
----------------------------------------------------------------------
      d{1,3}                   'd' (between 1 and 3 times (matching
                               the most amount possible))
----------------------------------------------------------------------
      \\                       '\'
----------------------------------------------------------------------
    )                        end of \2
----------------------------------------------------------------------
    (                        group and capture to \3:
----------------------------------------------------------------------
      [\\s\\S]*?               any character of: '\\', 's', '\\', 'S'
                               (0 or more times (matching the least
                               amount possible))
----------------------------------------------------------------------
    )                        end of \3
----------------------------------------------------------------------
    (?=                      look ahead to see if there is:
----------------------------------------------------------------------
      (                        group and capture to \4:
----------------------------------------------------------------------
        \\                       '\'
----------------------------------------------------------------------
        .                        any character except \n
----------------------------------------------------------------------
        END                      'END'
----------------------------------------------------------------------
       |                        OR
----------------------------------------------------------------------
        \\                       '\'
----------------------------------------------------------------------
        (                        group and capture to \5:
----------------------------------------------------------------------
          \\                       '\'
----------------------------------------------------------------------
          d{1,3}                   'd' (between 1 and 3 times
                                   (matching the most amount
                                   possible))
----------------------------------------------------------------------
          \\                       '\'
----------------------------------------------------------------------
        )                        end of \5
----------------------------------------------------------------------
      )                        end of \4
----------------------------------------------------------------------
    )                        end of look-ahead
----------------------------------------------------------------------
  )                        end of \1
----------------------------------------------------------------------
                           '\r\n\r\n\r\n'
----------------------------------------------------------------------
)                        end of grouping
----------------------------------------------------------------------

Matches Found:
NO MATCHES.