I've to search for a pattern and replace with input variable.
Suppose the strings are:
tempSearch : = '111-452-05'
tempSearch:= '111-452-10'
tempSearch:='11 1-459-15'
tempSearch: ='111-452-20'
tempSearch:='11 1-452-25'
search for the whole pattern starting from the "temp" to the end "'". I've to replace the value that is occuring after the first appearance of "-" with a user input value.
How can I do it?
Thank You!
Suppose the strings are:
tempSearch : = '111-452-05'
tempSearch:= '111-452-10'
tempSearch:='11 1-459-15'
tempSearch: ='111-452-20'
tempSearch:='11 1-452-25'
search for the whole pattern starting from the "temp" to the end "'". I've to replace the value that is occuring after the first appearance of "-" with a user input value.
How can I do it?
Thank You!
Comment