Page 1 of 1

Find and Replace text

Posted: 28 Oct 2015 10:39
by carmine
Hello,

I need a script to find any instance of BY Card No.:

Code: Select all

BY Card No.: 2167 3287 7374 8487
BY Card No.: Numeric 12323
BY Card No.: Numeric 12323


inside the text file and replace the [:] colon to [#] hash.

Code: Select all

BY Card No.[b]#[/b]2167 3287 7374 8487
BY Card No.[b]#[/b]Numeric 12323
BY Card No.[b]#[/b]Numeric 12323


Thanks in advance.

Re: Find and Replace text

Posted: 28 Oct 2015 11:27
by npocmaka_
here you can find few windows native solutions: http://stackoverflow.com/questions/6003 ... line-envir

Re: Find and Replace text

Posted: 28 Oct 2015 12:05
by Squashman
We have substitute function on our batch library.
http://www.dostips.com/DtCodeCmdLib.php ... substitute