I would like to have some kind of script or trigger to match on several lines for specific data, and then write the matched data in a specific format to a notepad file, as an example..
>score
St 100(100)/+ 69 Co 100(100)/+ 45
Qu 100(100)/+ 61 Ag 100(100)/+ 61
Pr 77( 77)/+ 16 Sd 100(100)/+ 25
Em 100(100)/+ 40 Me 80( 80)/+ 23
In 93( 93)/+ 25 Re 97( 99)/+ 48
I would like the output to simply spot the St, Qu, Pr, etc, and then write it out as:
100(100)+69, 100(100)/+61, 77(77)/+ 16, and so on. Anyone know the best or easiest way to do this?
Edit: Something I missed the first time is that there are some things I -don't- want it to match.
>score
St 100(100)/+ 69 Co 100(100)/+ 45
Qu 100(100)/+ 61 Ag 100(100)/+ 61
Pr 77( 77)/+ 16 Sd 100(100)/+ 25
Em 100(100)/+ 40 Me 80( 80)/+ 23
In 93( 93)/+ 25 Re 97( 99)/+ 48
I would like the output to simply spot the St, Qu, Pr, etc, and then write it out as:
100(100)+69, 100(100)/+61, 77(77)/+ 16, and so on. Anyone know the best or easiest way to do this?
Edit: Something I missed the first time is that there are some things I -don't- want it to match.