Skip to content

Latest commit

 

History

History
6 lines (5 loc) · 294 Bytes

20230103.md

File metadata and controls

6 lines (5 loc) · 294 Bytes

1. re.escape

  • 패턴을 입력받았을 때 특수문자에 백슬래시(이스케이프 문자) 처리 ex) pattern = r'((\d)\2{4,})' → re.escape(pattern) → ((\d)\2{4,})

2. 파이썬 문자열

  • r'~': raw string, 이스케이프 문자(\t, \n 등)도 그대로 출력