i have around 900 lines of text in this format:
AddTextEntry("TextHere", "TextHere")
.. i want to rename these to this format: {model = "TextHere", vehicleName = "TextHere"},
while keeping all of the original text in place which is in this example TextHere
.
is this possible? since doing them one by one for 900-1000 lines is a time consuming job. Thanks.
Make a copy of the original file.
Open the original file in Notepad. You can use Sublime Text or another text editor also.
Do find..replace in Notepad by clicking Edit > Replace.
AddTextEntry("
{model = "
That way, you replace AddTextEntry with model.
Go to the top of the file. Do find..replace again.
", "
vehicleName = "
That way you add vehicleName before the 2nd text.
Go to the top of the file. Do find..replace again.
")
"}
That way, you change the last close parenthesis with close curly brace.
Review the file. If all looks good, Save the file.