* Jerin Joy on Thursday, June 29, 2006 at 14:28:51 +0530:
> I have data that looks like this
>
> input [4:0] a.b.c.d;
> which I need to replace with
> input a.b.c.d [4:0] d;
>
> ie. I want to copy a.b.c.d and place it after input and replace it
> with d after [4:0].
:s/\(\[[^]]\+\]\) \(\([a-z]\.\)\{3}\([a-z]\)\);/\2 \1 \4;/
does it for your example, but I don't know which other
requirements and/or restrictions you have.
c
--
_B A U S T E L L E N_ lesen! --->> <http://www.blacktrash.org/baustellen.html>