Re: adding a crlf



Thu, 28 Feb 2008 11:09:55 -0800 (PST), /tmw/:

I am currently running a process in ANT to handle the file and was hoping that I could achieve this by using an already existing ANT task ( replace?, replaceregexp?)

example of data in file:
some text in file that goes like this and keeps going with no returns in it but i want to add some to reformat the file.

what i would want the output to be after processing - by adding a crlf after every 10th character in the file:
some text
in file t
hat goes l
ike this a
[...]

May be something like:

<replaceregexp file="..." byline="true"
match=".{10}" replace="\1\r\n" />

--
Stanimir
.