Network disconnection
Description
\w
는 글자를 대표하는 정규표현식입니다. \w
는
a, b, c, 가, 나, 다, 1, 2
와 같은 문자와 숫자를 포함합니다.- 특수문자는 포함하지 않지만,
_
(언더스코어)는 포함합니다.
빈칸에 \w
를 입력하고 [실행]해 보세요. Output으로 search_target에 들은 모든 문자와 숫자가 한 줄씩 나올 겁니다.
Fill type challenge HOWTO
- In the Fill type challenge, you have to fill the blank with appropriate code
- The given code except the blank cannot be edited.
- An error message will be shown in the Result area when you leave the blank empty.
1
2
3
4
5
6
7
8
9
10
11
# 빈칸에 정규표현식을 적습니다.
regex = r''
search_target = '''Luke Skywarker 02-123-4567 luke@daum.net
다스베이더 070-9999-9999 darth_vader@gmail.com
princess leia 010 2454 3457 leia@gmail.com'''
# 정규표현식과 일치하는 부분을 모두 찾아주는 파이썬 코드입니다.
import re
result = re.findall(regex, search_target)
print("\n".join(result))
Result
Stop
Result of [Run] or [Submit] will be displayed here