First where can I find the CFML Tag Reference for CF 5.0 ? I'm using the
refind tag.
I have a string which is composed out two parts, something like,
"103,blue" A number followed by a colour and seperated by a comma.
Following is the bit of CF 5.0 script which I'm working with:
<cfset f2 = ReFind(",(*)", #attributes.id#, True)>
<cfset number = Mid(#attributes.product_id#, 1, f2-1)>
<cfset colour = Mid(#attributes.product_id#, f2+1, 10)>
Now, what should my regular expression look like to find the position of
the comma? I'm sure my first attempt above is wrong.
My second question is what is the best way to find the length of the
string following the "," ??
Regards. Paul
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=14
Subscription:
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=14
Signup for the Fusion Authority news alert and keep up with the latest news in
ColdFusion and related topics.
http://www.fusionauthority.com/signup.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.14