[plug] vi regex

Jason Nicholls jason at mindsocket.com.au
Fri Nov 2 10:29:08 WST 2001


On Fri, Nov 02, 2001 at 10:22:45AM +0800, Steve Grasso wrote:
> vi regex gurus,
> 
> I have a monster data file filled WithWords LikeThis.
> I'm pulling out my hair putting together a vi substitution regex to split the 
> words on a capital letter without mucking up the white space already between 
> words. So, I have this: WithWords LikeThis and want to end up with this: With 
> Words Like This

	:%s/\([a-z]\)\([A-Z]\)/\1 \2/

> Some pointers please?

try and see, might be what you're after.


Later,

Jason Nicholls
--------------------------------------------------------------------
Jason Nicholls    icq: 11745841    email: <jason at mindsocket.com.au>
Proprietor                        mobile: 0417 410 811
Mind Socket [web services]          http://www.mindsocket.com.au/
--------------------------------------------------------------------



More information about the plug mailing list