Replace spaces within text strings
Posted: Fri Feb 14, 2003 8:59 pm
Hey folks,
Normally I've pretty much solved my RE manupulation but somehow I'm blowing this one...
Trying to replace spaces with underscore on text strings which are enclosed in quotes.
want
<tr>
<td><a href="3d graphic.htm">3d graphic</a></td>
</tr>
<tr>
<td><a href="acrobat pdf.htm">acrobat pdf</a></td>
</tr>
To end up
<tr>
<td><a href="3d_graphic.htm">3d graphic</a></td>
</tr>
<tr>
<td><a href="acrobat_pdf.htm">acrobat pdf</a></td>
</tr>
I've focused on the quotes so that the other text is untouched.
I've tried the [:space:] and [:blank:] with no success. I give...help!
K
Normally I've pretty much solved my RE manupulation but somehow I'm blowing this one...
Trying to replace spaces with underscore on text strings which are enclosed in quotes.
want
<tr>
<td><a href="3d graphic.htm">3d graphic</a></td>
</tr>
<tr>
<td><a href="acrobat pdf.htm">acrobat pdf</a></td>
</tr>
To end up
<tr>
<td><a href="3d_graphic.htm">3d graphic</a></td>
</tr>
<tr>
<td><a href="acrobat_pdf.htm">acrobat pdf</a></td>
</tr>
I've focused on the quotes so that the other text is untouched.
I've tried the [:space:] and [:blank:] with no success. I give...help!
K