You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Current »


python

기본 사용(모든 정규식 패턴찾기)

import re

proot = re.compile(정규식패턴,정규식옵션)
mroot = proot.findall(대상문자열소스)


정규식샘플

전체주석

re.DOTALL

<!--.*→>

/[*].*[*]/


주석, 경로문자

re.MULTILINE

regcomment = '[\s\n]//.*'
regpath = '[\'"][cdef][:].*[\'"]'



javascript



c#

  • No labels