tags:

views:

97

answers:

1

i have this string: owl:Class rdf:about="#other important people"

i want with help of vim regex to replace the space with _ but only after the word starting with #.

I mean i want finally: owl:Class rdf:about="#other_important_people"

sorry for my poor grammar

+2  A: 
:s/\(#[^"]*\)\@<= /_/g
chaos
Will this only replace the first space after the #
Question Mark
thanks! that works!
maiky
I used :%s/\(#[^"]*\)\@<= /_/gc and worked like a charm!
maiky
@Question Mark: Incorrect.
chaos