Reply to topic  [ 3 posts ] 
Attributing Find results to a variable 
Author Message

Joined: 2007-04-12 14:59:36
Posts: 229
I forgot how this works: In a find expression like Find Next “(part1)(part2)“
How do I attribute part1, part2 separately to variables?


2009-06-19 00:02:27
Profile

Joined: 2008-05-17 04:02:32
Posts: 400
That is $ option. You can use it in the following manner.
Code:
Find Next '(\w+) (\w+)', 'E$'
exit "1st word: $1, 2nd word $2"
or
Code:
Find Next '(?<word1>\w+) (?<word2>\w+)', 'E$'
exit "1st word: $word1, 2nd word $word2"


2009-06-19 08:42:10
Profile

Joined: 2007-04-12 14:59:36
Posts: 229
Thank you. This opens many possibilities. I was not aware of this.


2009-06-20 12:26:02
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software