Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Regular
Expressions
101
Regular
Expressions
101
Upgrade to Pro
Enterprise
Regular Expression
/
<(\w+)([^>]*)>(.*)(\s*)(<\/\1>$)
/
gm
Input 1
1
New
<HTML lang="ko"> <BODY> </BODY></HTML> <HTML lang="ko"> <BODY> <P>BOOST </P> </BODY></HTML> <body></body> <!DOCTYPE html> <HTML lang="ko"> <BODY> <P>BOOST<IMG SRC="codesquad.kr"></IMG> <BR/></P> <FONT name="Seoul">CAMP</FONT> </BODY></HTML> <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" > <TextView android:id="@+id/text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Hello, I am a TextView" /> <Spacer>blank</Spacer> <Button android:id="@+id/button" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Hello, I am a Button" /> </LinearLayout>