Matching content within tag
Posted: Thu Feb 04, 2010 4:16 pm
This has got to be the most straight-forward question ever asked, but I can not get this to match at all.
I have the following:
And I am trying to match everything within the <form...></form> tags. The regex I am using is:
This is stumping me. Is it because there are additional <'s and >'s in the content I'm trying to match?
I have the following:
Code: Select all
<form id="myForm" action="" method="get">
<table>
<tr><td>field1</td><td><input type="text" id="field1" value="" /></td></tr>
<tr><td>field2</td><td><input type="text" id="field2" value="" /></td></tr>
</table>
</form>Code: Select all
<form[^>](.*)</form>