Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Regular Expression
/
<[^>]+>
/
g
Input 1
New
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>Online regex tester and debugger: JavaScript, Python, PHP, and PCRE</title> <link href="//fonts.googleapis.com/css?family=Open+Sans:400,700,300&subset=latin" rel="stylesheet" type="text/css"> <link href="/css/main.1433274325.css" rel="stylesheet" type="text/css"> <link type="text/plain" rel="author" href="//regex101.com/humans.txt"> <link rel="icon" href="/favicon.ico" type="image/x-icon"> <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet"> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <meta name="keywords" content="javascript,regex,regular expression,debugger,explainer,helper,tester,match,pcre,python,editor"> <meta name="description" content="Online regex tester, debugger with highlighting for PHP, PCRE, Python and JavaScript."> <meta name="author" content="Firas
Substitution
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>Online regex tester and debugger: JavaScript, Python, PHP, and PCRE</title> <link href="//fonts.googleapis.com/css?family=Open+Sans:400,700,300&subset=latin" rel="stylesheet" type="text/css"> <link href="/css/main.1433274325.css" rel="stylesheet" type="text/css"> <link type="text/plain" rel="author" href="//regex101.com/humans.txt"> <link rel="icon" href="/favicon.ico" type="image/x-icon"> <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet"> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <meta name="keywords" content="javascript,regex,regular expression,debugger,explainer,helper,tester,match,pcre,python,editor"> <meta name="description" content="Online regex tester, debugger with highlighting for PHP, PCRE, Python and JavaScript."> <meta name="author" content="Firas