Hi Cats,
I need to find a string in a input.txt file
Current Playback Device ID=2A99FA92-E624-4650-A032-DA719D9B03D5
and replace it with:
Current Playback Device ID=721D0FD1-DD46-11d0-8AAC-00A0C91D299F
BUT consider that the replace have to be also in the case that the original string - in this case Current Playback Device ID=2A99FA92-E624-4650-A032-DA719D9B03D5 - contains different chatacters
for example Current Playback Device ID=AAAAAAAA-E624-AAAA-A032-AAAAAAAAAAAA
How can I do?
thanks
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 1 to 4 of 4
Thread
-
-
Strictly speaking, you cannot.
But if I am correctly reading between the lines, you need to use the LEN() - length, and MID() - middle position, string functions.
Scott -
Use regex. Search:
Current Playback Device ID=[0-9A-F]{8}-E624-[0-9A-F]{4}-A032-[0-9A-F]{12}
Replace:
Current Playback Device ID=721D0FD1-DD46-11d0-8AAC-00A0C91D299F
Last edited by JVRaines; 3rd Apr 2016 at 13:34. Reason: misread the OP
-
You can also use CMD's findstr which allows wild cards, place holders and many options. This can be used in a batch file as well for automating replacement.
Similar Threads
-
how to find and replace (add a REM) a text string inside a txt file?
By marcorocchini in forum Newbie / General discussionsReplies: 1Last Post: 10th Nov 2015, 15:58 -
[SOLVED] "--ipratio" "--pbratio"+"--scenecut" "--minkeyint" / "--keyint
By Kdmeizk in forum Video ConversionReplies: 14Last Post: 21st Jun 2015, 07:21 -
How do I find the "real" location of the streaming video?
By xtal_01 in forum Video Streaming DownloadingReplies: 8Last Post: 13th Oct 2014, 10:58 -
MEncoder outputs "could not find matching colorspace"
By codemaster in forum DVD RippingReplies: 0Last Post: 21st Sep 2011, 18:20 -
OT - "Find and replace in Windows 7" - how do I do this?
By tigerb in forum Newbie / General discussionsReplies: 3Last Post: 10th Apr 2011, 19:03