차이
문서의 선택한 두 판 사이의 차이를 보여줍니다.
양쪽 이전 판이전 판다음 판 | 이전 판 | ||
tech:regex [2015/09/09 17:18] – [문자표현] V_L | tech:regex [2016/07/12 00:56] (현재) – 바깥 편집 127.0.0.1 | ||
---|---|---|---|
줄 1: | 줄 1: | ||
+ | {{tag> | ||
====== 정규식 (Regular expression)====== | ====== 정규식 (Regular expression)====== | ||
|.|Any character except newline. | | |.|Any character except newline. | | ||
|\\.|A period (and so on for \\*, \\(, \\\\, etc.) | | |\\.|A period (and so on for \\*, \\(, \\\\, etc.) | | ||
- | |'' | + | |%%^%%|The start of the string. | |
|$|The end of the string. | | |$|The end of the string. | | ||
|\\d, | |\\d, | ||
줄 9: | 줄 10: | ||
|[abc]|Character a, b, or c. | | |[abc]|Character a, b, or c. | | ||
|[a-z]|a through z. | | |[a-z]|a through z. | | ||
- | |'' | + | |%%[^abc]%%|Any character except a, b, or c. | |
|%%aa|bb%%|Either aa or bb. | | |%%aa|bb%%|Either aa or bb. | | ||
|?|Zero or one of the preceding element. | | |?|Zero or one of the preceding element. | | ||
줄 189: | 줄 190: | ||
출처: http:// | 출처: http:// | ||
- | {{tag> | ||