Find and Replace text

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
carmine
Posts: 15
Joined: 18 Nov 2013 13:12

Find and Replace text

#1 Post by carmine » 28 Oct 2015 10:39

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.

npocmaka_
Posts: 516
Joined: 24 Jun 2013 17:10
Location: Bulgaria
Contact:

Re: Find and Replace text

#2 Post by npocmaka_ » 28 Oct 2015 11:27

here you can find few windows native solutions: http://stackoverflow.com/questions/6003 ... line-envir

Squashman
Expert
Posts: 4486
Joined: 23 Dec 2011 13:59

Re: Find and Replace text

#3 Post by Squashman » 28 Oct 2015 12:05

We have substitute function on our batch library.
http://www.dostips.com/DtCodeCmdLib.php ... substitute

Post Reply