replace spaces between different words many files

Any questions involving matching text strings to patterns - the pattern is called a "regular expression."

Moderator: General Moderators

Post Reply
nate
Forum Newbie
Posts: 14
Joined: Tue Feb 12, 2008 6:45 pm

replace spaces between different words many files

Post by nate »

I have been working on this problem with no luck, this is what I am trying to do...

document 1:

Line 10 only (hence the rangeSearch):

<rangeSearchCode(space)code><"text"><space><"text2"><space><"word"><code(space)rangeSearchCode>

document 200:

Line 10 only (hence the rangeSearch):

<rangeSearchCode(space)code><"text3"><space><"text4"><space><"word"><code(space)rangeSearchCode>

so...

I need to replace the spacebar (1) whitespace <space> with the character entity &nbsp; and leave the rest of the text and code alone, including the (space)s

Any useful responses would be greatly appreciated.

Thanks, Nate
Post Reply