home(1) + 'tools\ab\aw\aw.app'To set procedure to all what aw.app contains:
do home(1) + 'tools\ab\aw\aw.app'Then, to instantiate the class:
o = createObject('acRegExp')Invariable patterns are properties, those where you can specify something like a procedure name are methods accepting parameters with a default value of 'anything'
? o.instsProc() && in 'insts', 's' means it matches all instructions
To get the same pattern for a specific procedure name:? o.instsProc('myProc')
To test the 'procedure' patterndo acRegExp_instsPROC_Test in acTxt.prg with m.yourCodeThis displays the result (matches and sub-matches) found in m.yourCode into _Screen and 'debug output' window
o.setup(o.instsProc(), 'gmi') && 'g': global, 'm': multiline, 'i' ignore case for iMatch = 1 to o.execute(myCode) && or o.nMatches o.Matches[m.iMatch, 1-5] && .Matches[?, 1] = index && .Matches[?, 2] = match && .Matches[?, 3] = submatches (collection) && .Matches[?, 4] = length && .Matches[?, 5] = line number endforI'll send you the source code by e-mail so that you have more information about the parameters and sub-matches.