hey group --
First time poster. New UE user. Go easy on me.
I'm looking to do a pretty simple task with a macro but can't quite work it out after an hour and a half of mucking about. I have a file as follows:
I'd like to capture every occurance of "UnitTest\d.*" that has "34.a" in front of it, and append that to the clipboard string. The final result on the clipboard should look like this:
---------> UnitTest12, UnitTest009, UnitTest74
The regex to grab the captures is not a problem, what I have is working fine In UE. (I'm using Perl style, NOT Unix or UE, here):
---------> \s34.a\s*(UnitTest\d.*)\s*[:]
Where Im totally lost with UE is: How to append all the captures ($1) to the clipboard in one long string using a macro.
Anyone have a macro snippet? Im probably approaching it all wrong by not looping or something.
Tnx
WZ
First time poster. New UE user. Go easy on me.
I'm looking to do a pretty simple task with a macro but can't quite work it out after an hour and a half of mucking about. I have a file as follows:
Code: Select all
34.a UnitTest12: xxy
37.b blah blahUnitTest: yzz
34.a UnitTest009: zyz
42.c yadda, UnitTestadda: xyz
34.a UnitTest74: xxx
---------> UnitTest12, UnitTest009, UnitTest74
The regex to grab the captures is not a problem, what I have is working fine In UE. (I'm using Perl style, NOT Unix or UE, here):
---------> \s34.a\s*(UnitTest\d.*)\s*[:]
Where Im totally lost with UE is: How to append all the captures ($1) to the clipboard in one long string using a macro.
Anyone have a macro snippet? Im probably approaching it all wrong by not looping or something.
Tnx
WZ