Play around with the @flags & @byline; I think those will be able to solve
your problem.
--
Jeffrey E. Care ([EMAIL PROTECTED])
WebSphere v7 Release Engineer
WebSphere Build Tooling Lead (Project Mantis)
Gilbert Rebhan <[EMAIL PROTECTED]> wrote on 10/18/2005 01:41:02 PM:
> Hi,
>
> i want to change one line in a txtfile.
>
> 1. if txtfile is like =
>
> foo=bar
> bla=bla
>
> <property name="insert" value="123456"></property>
>
> <replaceregexp file="J:\test\bla.txt"
> match="bla.*"
> replace="\0:${insert}">
> </replaceregexp>
>
> works as it should, gives me =
>
> foo=bar
> bla=bla:123456
>
> 2. but if txtfile is like =
>
> foo=bar
> bla=bla
> foobar=foobar
>
> means the line to be altered is not the last line
>
> my snippet above gives me =
>
> foo=bar
> bla=bla
> :123456
> foobar=foobar
>
> What went wrong, how to get it right ?
> Any ideas ?
>
> Regards, Gilbert
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>