Python 정규식을 사용하는 다음 코드는 주어진 문자열/텍스트에서 이메일 ID를 추출합니다.
예시
import res ='manogna@tutorialspoint.com56'result =re.findall('[a-zA-Z0-9]\S*@\S*[a-zA-Z]', s)결과 인쇄출력
이것은 출력을 제공합니다.
['manogna@tutorialspoint.com']
Python 정규식을 사용하는 다음 코드는 주어진 문자열/텍스트에서 이메일 ID를 추출합니다.
import res ='manogna@tutorialspoint.com56'result =re.findall('[a-zA-Z0-9]\S*@\S*[a-zA-Z]', s)결과 인쇄출력
이것은 출력을 제공합니다.
['manogna@tutorialspoint.com']