Quote:
Hi! I want to write a code to extract out the characters "1E734138G04", which is after the "-" and before "_".
I have written these codes and I'm not sure how to extract out the characters that i want.
Isn't it what your code is doing ?
Your code gives you correct answer or not ?
How can you be unsure when you see the result on screen ?
Quote:
Wrote the codes above and some googling but I'm not sure which is the best method
For such an input, the difference between methods will be so tiny that you will not see a difference if you don't use it millions of time.