> First where can I find the CFML Tag Reference for CF 5.0 ? I'm using > the refind tag.
http://livedocs.macromedia.com/cf50docs/CFML_Reference/contents.jsp For other docs go straight to livedocs.macromedia.com. > 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. No need for REFind here, regular Find is simpler to use here: commaPosition = Find(",", yourVar) > My second question is what is the best way to find the length of the > string following the "," ?? stringLen = Len(ListLast(yourVar)) .erki ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=14 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=14 Get the mailserver that powers this list at http://www.coolfusion.com Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.14
