I forgot how this works: In a find expression like Find Next “(part1)(part2)“
How do I attribute part1, part2 separately to variables?
Attributing Find results to a variable
Re: Attributing Find results to a variable
That is $ option. You can use it in the following manner.or
Code: Select all
Find Next '(\w+) (\w+)', 'E$'
exit "1st word: $1, 2nd word $2"
Code: Select all
Find Next '(?<word1>\w+) (?<word2>\w+)', 'E$'
exit "1st word: $word1, 2nd word $word2"
Re: Attributing Find results to a variable
Thank you. This opens many possibilities. I was not aware of this.