To: metacard@lists.runrev.com
Sent: Sunday, May 8, 2011 1:14:19 PM
Subject: RE: Re: setting itemdel
A regex would certainly be better. As it requires a degree of coding
proficiency that was not evident when the question was initially raised, I
provided a solution to suit.
Would you like to give us
Best solution for this would be a GREP pattern. :)
Example: .*([0-9]+).*
PS: use metacard's replaceText syntax.
Al
replace (Size: 100ml; ) with 100 in fld Product
But you have different 'size' values. This removes the
non-numeric
characters...
set the itemDel to TAB
repeat
A regex would certainly be better. As it requires a degree of coding
proficiency that was not evident when the question was initially raised, I
provided a solution to suit.
Would you like to give us your matchtext solution rather than a copied
generic?
Hugh Senior
FLCo
Alain Farmer wrote:
Eva
replace (Size: 100ml; ) with 100 in fld Product
But you have different 'size' values. This removes the non-numeric
characters...
set the itemDel to TAB
repeat with n=1 to num of lines of fld Product
replace (Size: with in item 2 of line n of fld Product
replace ml;) with