ChatGPT로 쉽게 정규표현식 사용하기
Rae Noh
2023.02.07
To generate Regular Expression (regex) with ChatGPT
- Creator : Rae Noh
Step1. Access to ChatGPT console. If you don’t have openai.com account, please create an account.
Step2. Insert following prompts to generate regex to chatGPT console.
case1) If the contents of the prompt are not detailed, it will inform you of the regex where the wrong regex or exception case occurs, so it is recommended to write it in detail if possible.
Generate reqular expression (regex) that matches an email address in text.
case2) Generate Korean phone number pattern in the chatGPT console.
case2) Generate Korean phone number pattern in the chatGPT console.
Korean phone number pattern is 010-xxxx-xxxx. Every x is a number. Generate a regular expression that matches Korean phone number pattern in text.
Step3. Test the generated regex on the following test site.
Step3. Test the generated regex on the following test site.

![[문과생도 AI] 돌봄서비스를 위한 대화형 음성 챗봇 구현하기 썸네일](/_next/image?url=https%3A%2F%2Fcdn-beta.gpters.org%2Fexternal%2F923a1463c757342f9ed1da51.png&w=3840&q=75)

![[문과생도 AI] 4주 만에 AI로 서비스 개발하기(10기) 사례발표 썸네일](/_next/image?url=https%3A%2F%2Fcdn.gpters.org%2Fexternal%2F0f4d6639207d9af6a8fd7049.jpg&w=3840&q=75)