Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- 장고
- 상속
- 가상환경
- JavaScript
- 성수동카페
- BeautifulSoup
- 노마드코더
- richtext
- Django
- 자바
- 코딩독학
- Python
- 알고리즘
- DOM
- python3
- 부스트코스
- 속초여행
- 남양주맛집
- FLUTTER
- removetooltip
- c언어문자열
- 강원도속초맛집
- 건대입구맛집
- 컴퓨터과학
- 추상클래스
- 포인터
- 아스키코드
- popupmenubutton
- pipenv
- 정렬알고리즘
Archives
- Today
- Total
목록정규식 (1)
YUYANE
Python / Regular Expression(Regex)
Regular Expression 검색 패턴을 정의하는 일련의 문자열 1. re.search() 원하는 정보를 찾을 때 사용 import re patterns = ['term1','term2'] text = 'This is a string with term1, but not the other!' for pattern in patterns: print("I'm searching for: "+pattern) if re.search(pattern, text): print("Match!") else: print("No match!") 결과: I'm Searching for: term1 Match! I'm searching for: term2 No match! re.search. 메서드의 결과 값은 어떤 유형일까..
Programming Languages/PYTHON
2021. 1. 13. 13:13