Need help with regex blank space
Posted
by Gandalf StormCrow
on Stack Overflow
See other posts from Stack Overflow
or by Gandalf StormCrow
Published on 2010-04-25T16:35:48Z
Indexed on
2010/04/25
16:43 UTC
Read the original article
Hit count: 263
regex
How to replace from regex many empty/blank characters with none? ex:
<div class="someClass" id="someID">
...bunch of elements/content
<input type="button" name="myInput" id="inputID" title="myInput Title" />
...bunch of elements/content
</div>
when replaced :
<a class="myselector" rel="I need this value"></a><div class="someClass" id="someID">...bunch of elements/content<input type="button" name="myInput" id="inputID" title="myInput Title" />...bunch of elements/content</div>
© Stack Overflow or respective owner