I am not good at regex and was trying to read some stuff but it is getting me nowhere.
I have a large html string something like with string like:
<input data-val="true" data-val-required="The SearchType field is required." id="SearchType" name="UserSearchType" type="hidden" value="something">
I am trying to write a regex using which i can find all the strings and then replace the type to label from any other type.
even if i can get a colletion of strings from regex then that will be great.
For e.g
string testHtml =
"abc <input data-val='true' data-val-required='The SearchType field is required.' id='UserSearchType' name='UserSearchType' type='hidden' value='Scos'> abc <input data-val='true' data-val-required='The UserSearchType field is required.' id='UserSearchType' name='SearchType' type='hidden' value='sco'>";
I am trying to
find <input ....>
and create a collection or
find <input ..type='text'..>
and change it to <input ..type='label'..>
Please let me know if the question is vague and need any details