Programming Language/Python

[python] 파이썬 정규표현식 / re 모듈 사용법

그레이먼지 2022. 10. 12. 22:55

 

- 정규 표현식 문법 

- re 모듈 사용법

실습 : https://regexr.com/

 

RegExr: Learn, Build, & Test RegEx

RegExr is an online tool to learn, build, & test Regular Expressions (RegEx / RegExp).

regexr.com

https://velog.io/@hhhs101/Pandas-%EC%A0%95%EA%B7%9C%ED%91%9C%ED%98%84%EC%8B%9D-str.extractstr.contains

 

[Pandas] 정규표현식 (str.extract, str.contains)

1. 정규표현식 특정한 규칙을 가진 문자열을 검색하거나 치환하기 위해 사용된다. 메타문자 (Meta characters) 메타문자란 원래 그 문자가 가진 뜻이 아닌, 특별한 용도로 사용되는 문자이다. -대표적

velog.io

https://curryyou.tistory.com/234

 

[자바스크립트] 정규표현식(Regular Expression) 기초/기본 쉽고 상세한 사용 방법 정리(샘플 예제 코

# 정규표현식이란?(Regular Expression: Regex) 정규표현식은 "특정 패턴의 문자열"을 찾기 위한 표현 방식입니다. (이런걸 형식 언어, formal languange라고 합니다.) 정규표현식을 이용하면, 특정 패턴에 매

curryyou.tistory.com

 

- re 모듈 사용법

https://brownbears.tistory.com/506

 

[Python] re 모듈 사용법

regex는 정규 표현식으로 흔히 알려져 있습니다. 파이썬에서 정규 표현식을 사용할 때, 내장 모듈인 re를 사용하고 있습니다. re 모듈에서 제공해주는 함수들을 보면 match(), fullmatch(), findall(), search(

brownbears.tistory.com

https://defineall.tistory.com/743 (제일 깔끔함)

 

[파이썬] 정규표현식 사용하기 / re모듈 사용법

정규표현식이란? [프로그래밍] 정규표현식이란? 정규표현식이란? 문자열을 처리하는 방법 원하는 문자를 검색하거나, 찾아서 바꿀 수 있다. 정규표현식에 사용되는 메타 문자 원래 그 문자가 가

defineall.tistory.com

 

- tutorial

https://greeksharifa.github.io/%EC%A0%95%EA%B7%9C%ED%91%9C%ED%98%84%EC%8B%9D(re)/2018/07/20/regex-usage-01-basic/ 

 

Python, Machine & Deep Learning

Python, Machine Learning & Deep Learning

greeksharifa.github.io

https://wikidocs.net/4309#sub

 

07-3 강력한 정규 표현식의 세계로

이제 07-2에서 배우지 않은 몇몇 메타 문자의 의미를 살펴보고 그룹(Group)을 만드는 법, 전방 탐색 등 더욱 강력한 정규 표현식에 대해서 살펴보자. [TOC] # ...

wikidocs.net

 

공식문서

https://docs.python.org/3/library/re.html

 

re — Regular expression operations — Python 3.10.8 documentation

re — Regular expression operations Source code: Lib/re.py This module provides regular expression matching operations similar to those found in Perl. Both patterns and strings to be searched can be Unicode strings (str) as well as 8-bit strings (bytes).

docs.python.org