I get hung up on the silliest things....

Thanks Dan ;)

On May 21, 2:50 pm, "Dan G. Switzer, II" <[EMAIL PROTECTED]>
wrote:
> >This is a little off-topic, but when doing a regex search and replace
> >within a text editor, how can I replace one character within a
> >specific pattern?
>
> >I want to get rid of newlines within <td> tags.  This finds them:
> ><td>[^<]+(\r\n).+</td>
>
> >How do I specify that I only want to replace the matched set?
>
> You group all the contents and then the replacement string are all the
> matched sets pieced back together:
>
> sHtml.replace(/(<td>[^<]+)(\r\n)(.+</td>)/gi, "$1$3")
>
> -Dan

Reply via email to