본문으로 건너뛰기

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.
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.
1

함께 이야기해요 1

로그인하고 댓글을 남겨 주세요

김욱영 프로필 이미지
김욱영2023.06.08
이제야 보았는데 좋은 사례를 공유해주셨네요. 감사합니다 ㅎㅎ

필요한 AI 정보만
메일함에 쏙쏙 넣어드려요.

지금 핫한 AI 소식부터 직접 해 본 사례까지, 월요일마다 무료로 받아보세요

이런 사례도 있어요

사례 전체 보기