Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

re.MULTILINE

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


URL

http[s]?://(?:[a-zA-Z]|[0-9]|[$-_@.&+]|[!*\(\),]|(?:%[0-9a-fA-F][0-9a-fA-F]))+



검색결과 라인번호 찍기 예제

Code Block
languagepy
themeEmacs
proot = re.compile(rootcondition,rootoption)
for mroot2 in proot.finditer(srcData):                
                start_line = len(re_newline.findall(srcData, 0, mroot2.start()))+1
                rootContent = mroot2.group().replace('\t','')


#start_line이 라인번호



javascript



c#