REX comma separated list

sourceuno
Posts: 225
Joined: Mon Apr 09, 2001 3:58 pm

REX comma separated list

Post by sourceuno »

How can I use REX to get the integers from the following list into a multi-value variable:

1, 2, 3, 4, 5, 6, 7
User avatar
John
Site Admin
Posts: 2623
Joined: Mon Apr 24, 2000 3:18 pm
Location: Cleveland, OH

REX comma separated list

Post by John »

You can use

<split "," $data>

which will split the field using the rex expression given (,).
John Turnbull
Thunderstone Software
User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

REX comma separated list

Post by mark »

Or use <rex "\digit+" $data>