YAPE::Regex::Explain - search.cpan.org
mercredi 31 juillet 2013 à 11:28 Manuel Flury, le 31/07/2013 à 11:28
Explication avec des mots d'expression régulière :
Par exemple :
The regular expression:
(?-imsx:/(?!1111)\d{4}/)
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):
----------------------------------------------------------------------
/ '/'
----------------------------------------------------------------------
(?! look ahead to see if there is not:
----------------------------------------------------------------------
1111 '1111'
----------------------------------------------------------------------
) end of look-ahead
----------------------------------------------------------------------
\d{4} digits (0-9) (4 times)
----------------------------------------------------------------------
/ '/'
----------------------------------------------------------------------
) end of grouping
----------------------------------------------------------------------
(Permalink)
Explication avec des mots d'expression régulière :
Par exemple :
The regular expression:
(?-imsx:/(?!1111)\d{4}/)
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):
----------------------------------------------------------------------
/ '/'
----------------------------------------------------------------------
(?! look ahead to see if there is not:
----------------------------------------------------------------------
1111 '1111'
----------------------------------------------------------------------
) end of look-ahead
----------------------------------------------------------------------
\d{4} digits (0-9) (4 times)
----------------------------------------------------------------------
/ '/'
----------------------------------------------------------------------
) end of grouping
----------------------------------------------------------------------
(Permalink)