Skip to content
Prev 156686 / 398506 Next

removing a word, the following space and the next word

On 21/09/2008, at 5:15 AM, jim holtman wrote:

            
I don't get what the bit

	<file://0.0.0.1/>

is about.  If I do (just)

	gsub('(Mr\\.*)\\s+\\w+', "\\1 xxxx", x)

I get the desired result, i.e.


[1] "Mr xxxx ate lunch and Mr xxxx was tied"

	cheers,

		Rolf Turner


	

######################################################################
Attention:\ This e-mail message is privileged and confid...{{dropped:9}}