parametric field of SET datatype and Meta tag
Posted: Wed Feb 16, 2011 9:51 am
I'm trying to fill a parametric field defined as SET datatype from HTML Meta tag containing multiple values via the 'Data from Field' option
As an added difficulty, the values i have to extract contain ','.
I have figured out a REX that works and returns the correct set members, but i haven't figured a way to tell to put that result into the parametric field as separate set members
Ex.:
<meta name="m1" content="item1=a,b,item2=c">
The retrieved set should be : ('a,b','c') i.e. two items.
In the replace part i have tried the following syntaxes but i always end up with one set member :
!!\2,!!\5!! ==> ('!!a,b!!,c!!')
I expected this one to work or berhaps give me 3 set members
I tried the followin as well just in case
!!\2|!!\5!! ==> ('!!a,b!!|c!!')
!!\2 !!\5!! ==> ('!!a,b!! c!!')
As an added difficulty, the values i have to extract contain ','.
I have figured out a REX that works and returns the correct set members, but i haven't figured a way to tell to put that result into the parametric field as separate set members
Ex.:
<meta name="m1" content="item1=a,b,item2=c">
The retrieved set should be : ('a,b','c') i.e. two items.
In the replace part i have tried the following syntaxes but i always end up with one set member :
!!\2,!!\5!! ==> ('!!a,b!!,c!!')
I expected this one to work or berhaps give me 3 set members
I tried the followin as well just in case
!!\2|!!\5!! ==> ('!!a,b!!|c!!')
!!\2 !!\5!! ==> ('!!a,b!! c!!')