Execution Time(sec.):
0.000009
Raw Match Pattern:
(.*)(\"|\'|\;|\.|\,|\:|\(|\)|\{|\}|\[|\])(.*)?
Match Pattern Explanation:
The regular expression:
(?-imsx:(.*)("|'|;|\.|,|:|\(|\)|\{|\}|\[|\])(.*)?)
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:
----------------------------------------------------------------------
.* any character except \n (0 or more times
(matching the most amount possible))
----------------------------------------------------------------------
) end of \1
----------------------------------------------------------------------
( group and capture to \2:
----------------------------------------------------------------------
" '"'
----------------------------------------------------------------------
| OR
----------------------------------------------------------------------
' '\''
----------------------------------------------------------------------
| OR
----------------------------------------------------------------------
; ';'
----------------------------------------------------------------------
| OR
----------------------------------------------------------------------
\. '.'
----------------------------------------------------------------------
| OR
----------------------------------------------------------------------
, ','
----------------------------------------------------------------------
| OR
----------------------------------------------------------------------
: ':'
----------------------------------------------------------------------
| OR
----------------------------------------------------------------------
\( '('
----------------------------------------------------------------------
| OR
----------------------------------------------------------------------
\) ')'
----------------------------------------------------------------------
| OR
----------------------------------------------------------------------
\{ '{'
----------------------------------------------------------------------
| OR
----------------------------------------------------------------------
\} '}'
----------------------------------------------------------------------
| OR
----------------------------------------------------------------------
\[ '['
----------------------------------------------------------------------
| OR
----------------------------------------------------------------------
\] ']'
----------------------------------------------------------------------
) end of \2
----------------------------------------------------------------------
( group and capture to \3 (optional
(matching the most amount possible)):
----------------------------------------------------------------------
.* any character except \n (0 or more times
(matching the most amount possible))
----------------------------------------------------------------------
)? end of \3 (NOTE: because you're using a
quantifier on this capture, only the LAST
repetition of the captured pattern will be
stored in \3)
----------------------------------------------------------------------
) end of grouping
----------------------------------------------------------------------
$matches Array:
(
[0] => Array
(
[0] => hello:goodbye
)
[1] => Array
(
[0] => hello
)
[2] => Array
(
[0] => :
)
[3] => Array
(
[0] => goodbye
**ignore "?-imsx:" that is looking at the possible flags you can set
Bookmarks