I need a function that seperates a word from everything other in the line
For example, Line1 “gamertag: johnny51 you can add me here”
After a function I would like to only to see
Line 1 “johnny51”
Is this even possible? If it is, I could really use some help. Thanks everybody.
If you are searching for the same words every time, just search for, “gamertag: johnny51 you can add me here” and replace it with, “johnny51” in the normal mode. If the words are different, let us know, you will need a Regular Expression for it.
@Milan-Djukanovic It’s tough to be sure just what you want to match, and what to exclude. Match a specific name? any string after “gamertag”?
It would be helpful if you showed several lines, such as:
gamertag: johnny51 you can add me here gamertag: johnny51 you can add me there johnny51 you can add me here gamertag: johnny52 you can add me here zamertag: johnny51 you can add me here zamertag: johnny52 you can add me here
and stated clearly which lines should and shouldn’t match, and what the lines should look like after the desired operation. (Also it’s nicer to read text inside a “code” box like I used above; use the 5th edit window button).