제발, 모든 양식 태그를 제거하려면 정규식이 필요합니다. 예를 들어 는 HTML 텍스트에 내가있는 경우 :모든 입력/텍스트 영역을 제거하는 정규식/SELECT FROM html
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Title appears in the browser's title bar...</title>
<style type="text/css">
body {background-color:ffffff;background-image:url(http://);background-repeat:no-repeat;background-position:top left;background-attachment:fixed;}
h1{font-family:Cursive;color:000000;}
p {font-family:Cursive;font-size:14px;font-style:normal;font-weight:normal;color:000000;}
</style>
</head>
<body>
<form name="fr">
<input name="ss" id="sss" value="as1">
</form>
<h1>Heading goes here...</h1>
<p>Enter your paragraph text here...</p>
</html>
내가 얻을 수있는 모든 입력 태그를 제거해야합니다
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Title appears in the browser's title bar...</title>
<style type="text/css">
body {background-color:ffffff;background-image:url(http://);background-repeat:no-repeat;background-position:top left;background-attachment:fixed;}
h1{font-family:Cursive;color:000000;}
p {font-family:Cursive;font-size:14px;font-style:normal;font-weight:normal;color:000000;}
</style>
</head>
<body>
<form name="fr">
</form>
<h1>Heading goes here...</h1>
<p>Enter your paragraph text here...</p>
</html>
_where의 내 스프레이 bottle_ ... 제외하고는 [정규식 일치 열린 태그의 중복 가능성 XHTML 자체 포함 태그] (http://stackoverflow.com/questions/1732348/regex-match-open-tags-except-xhtml-self-contained-tags). BTW, 정규식 질문을 할 때 프로그래밍 언어를 지정해야합니다. –
"모든 양식 태그를 제거하려면 정규식이 필요합니다"- 아니요, Matt의 링크 –
에 설명 된대로 HTML 파서가 필요합니다. 어떤 정규식을 사용하고 있습니까? – ridgerunner