hello... i'm looking for help with wildcards...
i have a specific task to complete.. i need to add dash & space into a space in a string of letters and characters...
221kbps - 00:28:34space dash space here47Mb - 44.1 kHz
198kbps - 01:27:43 41Mb - 44.1 kHz
215kbps - 00:34:52 156Mb - 44.1 kHz
225kbps - 00:32:14 54Mb - 48 kHz
so my finished text will look like this
221kbps - 00:28:34 - 47Mb - 44.1 kHz
198kbps - 01:27:43 - 41Mb - 44.1 kHz
215kbps - 00:34:52 - 156Mb - 44.1 kHz
225kbps - 00:32:14 - 54Mb - 48 kHz
there are many variables to the text - but i thought perhaps i could create a wildcard digit find/change based on the Mb bit, replacing the single space with space dash space
i need to retain the numbers before the Mb
so my question - is it possible to RETAIN WILDCARD NUMBERS?
If all text is like this throughout you could do a search for
$1 - $2
Try it on a few see if it works.
omg... just fell of my chair
tried it in text - no joy...
tried it as a grep.
YES YES YES
thankyou so much - i have about 18,000 to format for a music website...
if you ever find your way to our neck of the woods in the South of France - please do visit my b&b
i have a bottle of vintage champagne with your name on it...
Ah yes the magic of GREP!
You can expect me in the morning