정규 표현 식 패턴 문법

원소 의 의미
.                          (   DOTALL        )
^                      (  MULTILINE,        )
$                      (  MULTILINE,        )
*                 0                   ,    (       )
+                 1                   ,    
?                 0  1               ,    
*? , +?, ??            *, +,   ? (       )
{m,n}              m   n                ,    
{m,n}?             m   n                ,     
[...]                              
|                   
(...)                    ,      
(?iLmsux)                  ,     
(?:...)            (...),         
(?P<id>...)        (...),           id,           
(?P=id)             id      
(?#...)                    ,     
(?=...)         Lookahead assertion; matches if regular expression ... matches what comes next, but does not consume any part of the string
(?!...)         Negative lookahead assertion; matches if regular expression ... does not match what comes next, and does not consume any part of the string
(?<=...)        Lookbehind assertion; matches if there is a match for regular expression ... ending at the current position (... must match a fixed length)
(?<!...)        Negative lookbehind assertion; matches if there is no match for regular expression ... ending at the current position (... must match a fixed length)

umber ( , 1-99 ) \A \b \B ( ) \d \D \s \S \w \W \Z \\

좋은 웹페이지 즐겨찾기