[cfaussie] String Manipulation
Hi I am trying to figure our the best way to manipulate the value using CF so I insert : after ever 2 characters as in converting 1Z0617756740260660 to 1Z:06:17:75:67:40:26:06:60 Any suggestions would be appreciated Kind Regards Claude Raiola Director logo_new TrackingCentral Pty Ltd (A.C.N. 150 409 180) Web: www.TrackingCentral.com.au http://www.trackingcentral.com.au/ Email: i...@trackingcentral.com.au Call 1300 255 990 -- You received this message because you are subscribed to the Google Groups cfaussie group. To unsubscribe from this group and stop receiving emails from it, send an email to cfaussie+unsubscr...@googlegroups.com. To post to this group, send email to cfaussie@googlegroups.com. Visit this group at http://groups.google.com/group/cfaussie. For more options, visit https://groups.google.com/groups/opt_out. image001.gif
Re: [cfaussie] String Manipulation
cfset strArray = listToArray(1Z0617756740260660,) / cfset newStr = '' / cfloop from=1 to=#arrayLen(strArray)# index=i cfset newStr = listAppend(newStr,strArray[i],: ) / /cfloop cfdump var=#newStr# / Will do it. On Thu, Jul 11, 2013 at 12:28 AM, rai...@ozemail.com.au wrote: Hi I am trying to figure our the best way to manipulate the value using CF so I insert : after ever 2 characters as in converting 1Z0617756740260660 to 1Z:06:17:75:67:40:26:06:60 ** ** Any suggestions would be appreciated ** ** ** ** ** ** Kind Regards ** ** Claude Raiola Director ** ** [image: logo_new] ** ** TrackingCentral Pty Ltd (A.C.N. 150 409 180) Web: www.TrackingCentral.com.au http://www.trackingcentral.com.au/ Email: i...@trackingcentral.com.au Call 1300 255 990 ** ** -- You received this message because you are subscribed to the Google Groups cfaussie group. To unsubscribe from this group and stop receiving emails from it, send an email to cfaussie+unsubscr...@googlegroups.com. To post to this group, send email to cfaussie@googlegroups.com. Visit this group at http://groups.google.com/group/cfaussie. For more options, visit https://groups.google.com/groups/opt_out. -- Paul Kukiel -- You received this message because you are subscribed to the Google Groups cfaussie group. To unsubscribe from this group and stop receiving emails from it, send an email to cfaussie+unsubscr...@googlegroups.com. To post to this group, send email to cfaussie@googlegroups.com. Visit this group at http://groups.google.com/group/cfaussie. For more options, visit https://groups.google.com/groups/opt_out. image001.gif
Re: [cfaussie] String Manipulation
I forgot that it's every 2: cfset strArray = listToArray(1Z0617756740260660,) / cfset newStr = '' / cfloop from=1 to=#arrayLen(strArray)# index=i step=2 cfset newStr = listAppend(newStr,strArray[i]strArray[i+1],: ) / /cfloop cfdump var=#newStr# / On Thu, Jul 11, 2013 at 7:22 AM, Paul Kukiel kuki...@gmail.com wrote: cfset strArray = listToArray(1Z0617756740260660,) / cfset newStr = '' / cfloop from=1 to=#arrayLen(strArray)# index=i cfset newStr = listAppend(newStr,strArray[i],: ) / /cfloop cfdump var=#newStr# / Will do it. On Thu, Jul 11, 2013 at 12:28 AM, rai...@ozemail.com.au wrote: Hi I am trying to figure our the best way to manipulate the value using CF so I insert : after ever 2 characters as in converting 1Z0617756740260660 to 1Z:06:17:75:67:40:26:06:60 ** ** Any suggestions would be appreciated ** ** ** ** ** ** Kind Regards ** ** Claude Raiola Director ** ** [image: logo_new] ** ** TrackingCentral Pty Ltd (A.C.N. 150 409 180) Web: www.TrackingCentral.com.au http://www.trackingcentral.com.au/ Email: i...@trackingcentral.com.au Call 1300 255 990 ** ** -- You received this message because you are subscribed to the Google Groups cfaussie group. To unsubscribe from this group and stop receiving emails from it, send an email to cfaussie+unsubscr...@googlegroups.com. To post to this group, send email to cfaussie@googlegroups.com. Visit this group at http://groups.google.com/group/cfaussie. For more options, visit https://groups.google.com/groups/opt_out. -- Paul Kukiel -- Paul Kukiel -- You received this message because you are subscribed to the Google Groups cfaussie group. To unsubscribe from this group and stop receiving emails from it, send an email to cfaussie+unsubscr...@googlegroups.com. To post to this group, send email to cfaussie@googlegroups.com. Visit this group at http://groups.google.com/group/cfaussie. For more options, visit https://groups.google.com/groups/opt_out. image001.gif
[cfaussie] Re: String Manipulation
I think you might find a RegEx using back-referencing and look-ahead is the way to go... REReplace(variables.start_str,'(..)(?!$)','\1:\2','all'); Full test below. cfscript variables.start_str = '1Z0617756740260660'; variables.end_str = REReplace(variables.start_str,'(..)(?!$)','\1:\2','all '); writeOutput(variables.start_str 'br'); // Initial String writeOutput('1Z:06:17:75:67:40:26:06:60br'); // Target result writeOutput(variables.end_str); // Actual Result abort; /cfscript Rawdy On Thursday, July 11, 2013 12:28:23 AM UTC+10, rai...@ozemail.com.au wrote: Hi I am trying to figure our the best way to manipulate the value using CF so I insert : after ever 2 characters as in converting 1Z0617756740260660 to 1Z:06:17:75:67:40:26:06:60 Any suggestions would be appreciated Kind Regards Claude Raiola Director [image: logo_new] TrackingCentral Pty Ltd (A.C.N. 150 409 180) Web: www.TrackingCentral.com.au http://www.trackingcentral.com.au/ Email: in...@trackingcentral.com.au javascript: Call 1300 255 990 -- You received this message because you are subscribed to the Google Groups cfaussie group. To unsubscribe from this group and stop receiving emails from it, send an email to cfaussie+unsubscr...@googlegroups.com. To post to this group, send email to cfaussie@googlegroups.com. Visit this group at http://groups.google.com/group/cfaussie. For more options, visit https://groups.google.com/groups/opt_out.
[cfaussie] Re: String Manipulation
I think you might find a RegEx using back-referencing and look-ahead is the way to go... REReplace(variables.start_str,'(..)(?!$)','\1:','all'); Full test below. cfscript variables.start_str = '1Z0617756740260660'; variables.end_str = REReplace(variables.start_str,'(..)(?!$)','\1:\2','all '); writeOutput(variables.start_str 'br'); // Initial String writeOutput('1Z:06:17:75:67:40:26:06:60br'); // Target result writeOutput(variables.end_str); // Actual Result abort; /cfscript Rawdy On Thursday, July 11, 2013 12:28:23 AM UTC+10, rai...@ozemail.com.au wrote: Hi I am trying to figure our the best way to manipulate the value using CF so I insert : after ever 2 characters as in converting 1Z0617756740260660 to 1Z:06:17:75:67:40:26:06:60 Any suggestions would be appreciated Kind Regards Claude Raiola Director [image: logo_new] TrackingCentral Pty Ltd (A.C.N. 150 409 180) Web: www.TrackingCentral.com.au http://www.trackingcentral.com.au/ Email: in...@trackingcentral.com.au javascript: Call 1300 255 990 -- You received this message because you are subscribed to the Google Groups cfaussie group. To unsubscribe from this group and stop receiving emails from it, send an email to cfaussie+unsubscr...@googlegroups.com. To post to this group, send email to cfaussie@googlegroups.com. Visit this group at http://groups.google.com/group/cfaussie. For more options, visit https://groups.google.com/groups/opt_out.
Re: [cfaussie] ColdFusion/Railo on Java PaaS
I've been using a Railo instance on CloudBees for over a year for personal projects - setup was very quick. They also have some local staff, including Michael Neale who is a co-organiser of ErlSyd user group with me (CloudBees uses Erlang). Cheers, Robin Robin Hilliard Chief Technology Officer RocketBoots Pty Ltd Level 11 189 Kent Street Sydney NSW 2001 Australia map Phone +61 2 9323 2507 Facsimile +61 2 9323 2501 Mobile +61 418 414 341 email ro...@rocketboots.com web www.rocketboots.com.au On 10/07/2013, at 12:01 AM, Geoff Bowers mod...@daemon.com.au wrote: Anyone out there been working with a Java PaaS (platform as a service)? Been having some great success tinkering with CloudBees (http://www.cloudbees.net). Was wondering if anyone had good experiences on other platforms as well. Trying to work out if its viable or not to consider these deployment environments for client CF apps, and move to the whole NoOPS Nirvana. -- geoff http://www.daemon.com.au/ twitter. @modius -- You received this message because you are subscribed to the Google Groups cfaussie group. To unsubscribe from this group and stop receiving emails from it, send an email to cfaussie+unsubscr...@googlegroups.com. To post to this group, send email to cfaussie@googlegroups.com. Visit this group at http://groups.google.com/group/cfaussie. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups cfaussie group. To unsubscribe from this group and stop receiving emails from it, send an email to cfaussie+unsubscr...@googlegroups.com. To post to this group, send email to cfaussie@googlegroups.com. Visit this group at http://groups.google.com/group/cfaussie. For more options, visit https://groups.google.com/groups/opt_out. inline: rb_logo.png
[cfaussie] Re: String Manipulation
I think you might find a RegEx using back-referencing and look-ahead is the way to go... REReplace(variables.start_str,'(..)(?!$)','\1:\2','all'); Full test below. cfscript variables.start_str = '1Z0617756740260660'; variables.end_str = REReplace(variables.start_str,'(..)(?!$)','\1:','all'); writeOutput(variables.start_str 'br'); // Initial String writeOutput('1Z:06:17:75:67:40:26:06:60br'); // Target result writeOutput(variables.end_str); // Actual Result abort; /cfscript Rawdy On Thursday, July 11, 2013 12:28:23 AM UTC+10, rai...@ozemail.com.au wrote: Hi I am trying to figure our the best way to manipulate the value using CF so I insert : after ever 2 characters as in converting 1Z0617756740260660 to 1Z:06:17:75:67:40:26:06:60 Any suggestions would be appreciated Kind Regards Claude Raiola Director [image: logo_new] TrackingCentral Pty Ltd (A.C.N. 150 409 180) Web: www.TrackingCentral.com.au http://www.trackingcentral.com.au/ Email: in...@trackingcentral.com.au javascript: Call 1300 255 990 -- You received this message because you are subscribed to the Google Groups cfaussie group. To unsubscribe from this group and stop receiving emails from it, send an email to cfaussie+unsubscr...@googlegroups.com. To post to this group, send email to cfaussie@googlegroups.com. Visit this group at http://groups.google.com/group/cfaussie. For more options, visit https://groups.google.com/groups/opt_out.
[cfaussie] Re: String Manipulation
I think you might find a RegEx using back-referencing and look-ahead is the way to go... REReplace(variables.start_str,'(..)(?!$)','\1:','all'); Full test below. cfscript variables.start_str = '1Z0617756740260660'; variables.end_str = REReplace(variables.start_str,'(..)(?!$)','\1:','all'); writeOutput(variables.start_str 'br'); // Initial String writeOutput('1Z:06:17:75:67:40:26:06:60br'); // Target result writeOutput(variables.end_str); // Actual Result abort; /cfscript Rawdy On Thursday, July 11, 2013 12:28:23 AM UTC+10, rai...@ozemail.com.au wrote: Hi I am trying to figure our the best way to manipulate the value using CF so I insert : after ever 2 characters as in converting 1Z0617756740260660 to 1Z:06:17:75:67:40:26:06:60 Any suggestions would be appreciated Kind Regards Claude Raiola Director [image: logo_new] TrackingCentral Pty Ltd (A.C.N. 150 409 180) Web: www.TrackingCentral.com.au http://www.trackingcentral.com.au/ Email: in...@trackingcentral.com.au javascript: Call 1300 255 990 -- You received this message because you are subscribed to the Google Groups cfaussie group. To unsubscribe from this group and stop receiving emails from it, send an email to cfaussie+unsubscr...@googlegroups.com. To post to this group, send email to cfaussie@googlegroups.com. Visit this group at http://groups.google.com/group/cfaussie. For more options, visit https://groups.google.com/groups/opt_out.
Re: [cfaussie] String Manipulation
Or perhaps fp-style: function colonise(s, out=) { return (s eq ) ? out : colonise(mid(s, 3), listAppend(out, left(s, 2), :)); } writeOutput(colonise(1Z0617756740260660)); Cheers, Robin Robin Hilliard Chief Technology Officer RocketBoots Pty Ltd Level 11 189 Kent Street Sydney NSW 2001 Australia map Phone +61 2 9323 2507 Facsimile +61 2 9323 2501 Mobile +61 418 414 341 email ro...@rocketboots.com web www.rocketboots.com.au On 11/07/2013, at 12:28 AM, rai...@ozemail.com.au wrote: Hi I am trying to figure our the best way to manipulate the value using CF so I insert : after ever 2 characters as in converting 1Z0617756740260660 to 1Z:06:17:75:67:40:26:06:60 Any suggestions would be appreciated Kind Regards Claude Raiola Director image001.gif TrackingCentral Pty Ltd (A.C.N. 150 409 180) Web: www.TrackingCentral.com.au Email: i...@trackingcentral.com.au Call 1300 255 990 -- You received this message because you are subscribed to the Google Groups cfaussie group. To unsubscribe from this group and stop receiving emails from it, send an email to cfaussie+unsubscr...@googlegroups.com. To post to this group, send email to cfaussie@googlegroups.com. Visit this group at http://groups.google.com/group/cfaussie. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups cfaussie group. To unsubscribe from this group and stop receiving emails from it, send an email to cfaussie+unsubscr...@googlegroups.com. To post to this group, send email to cfaussie@googlegroups.com. Visit this group at http://groups.google.com/group/cfaussie. For more options, visit https://groups.google.com/groups/opt_out. inline: rb_logo.png
Re: [cfaussie] Re: String Manipulation
That's some hot Regex. On Thu, Jul 11, 2013 at 11:11 AM, Rawdyn Nutting raw...@gmail.com wrote: I think you might find a RegEx using back-referencing and look-ahead is the way to go... REReplace(variables.start_str,**'(..)(?!$)','\1:','all'); Full test below. cfscript variables.start_str = '1Z0617756740260660'; variables.end_str = REReplace(variables.start_str,**'(..)(?!$)','\1:','all '); writeOutput(variables.start_**str 'br'); // Initial String writeOutput('1Z:06:17:75:67:**40:26:06:60br'); // Target result writeOutput(variables.end_str)**; // Actual Result abort; /cfscript Rawdy -- E: mark.man...@gmail.com T: http://www.twitter.com/neurotic W: www.compoundtheory.com 2 Devs from Down Under Podcast http://www.2ddu.com/ -- You received this message because you are subscribed to the Google Groups cfaussie group. To unsubscribe from this group and stop receiving emails from it, send an email to cfaussie+unsubscr...@googlegroups.com. To post to this group, send email to cfaussie@googlegroups.com. Visit this group at http://groups.google.com/group/cfaussie. For more options, visit https://groups.google.com/groups/opt_out.
RE: [cfaussie] String Manipulation
That looks very clever, I don't understand it so I tried to run it and work it out, But it doesn't work for me. Mid requires 3 params but you are passing 2, so not sure Regards Dale Fraser From: cfaussie@googlegroups.com [mailto:cfaussie@googlegroups.com] On Behalf Of Robin Hilliard Sent: Thursday, 11 July 2013 11:26 AM To: cfaussie@googlegroups.com Subject: Re: [cfaussie] String Manipulation Or perhaps fp-style: function colonise(s, out=) { return (s eq ) ? out : colonise(mid(s, 3), listAppend(out, left(s, 2), :)); } writeOutput(colonise(1Z0617756740260660)); Cheers, Robin [cid:image001.png@01CE7E40.41DB2250] Robin Hilliard Chief Technology Officer RocketBoots Pty Ltd Level 11 189 Kent Street Sydney NSW 2001 Australiamaphttp://goo.gl/maps/RKyY9 Phone +61 2 9323 2507 Facsimile +61 2 9323 2501 Mobile +61 418 414 341 email ro...@rocketboots.commailto:ro...@rocketboots.com web www.rocketboots.com.auhttp://www.rocketboots.com.au/ On 11/07/2013, at 12:28 AM, rai...@ozemail.com.aumailto:rai...@ozemail.com.au wrote: Hi I am trying to figure our the best way to manipulate the value using CF so I insert : after ever 2 characters as in converting 1Z0617756740260660 to 1Z:06:17:75:67:40:26:06:60 Any suggestions would be appreciated Kind Regards Claude Raiola Director image001.gif TrackingCentral Pty Ltd (A.C.N. 150 409 180) Web: www.TrackingCentral.com.auhttp://www.trackingcentral.com.au/ Email: i...@trackingcentral.com.aumailto:i...@trackingcentral.com.au Call 1300 255 990 -- You received this message because you are subscribed to the Google Groups cfaussie group. To unsubscribe from this group and stop receiving emails from it, send an email to cfaussie+unsubscr...@googlegroups.commailto:cfaussie+unsubscr...@googlegroups.com. To post to this group, send email to cfaussie@googlegroups.commailto:cfaussie@googlegroups.com. Visit this group at http://groups.google.com/group/cfaussie. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups cfaussie group. To unsubscribe from this group and stop receiving emails from it, send an email to cfaussie+unsubscr...@googlegroups.commailto:cfaussie+unsubscr...@googlegroups.com. To post to this group, send email to cfaussie@googlegroups.commailto:cfaussie@googlegroups.com. Visit this group at http://groups.google.com/group/cfaussie. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups cfaussie group. To unsubscribe from this group and stop receiving emails from it, send an email to cfaussie+unsubscr...@googlegroups.com. To post to this group, send email to cfaussie@googlegroups.com. Visit this group at http://groups.google.com/group/cfaussie. For more options, visit https://groups.google.com/groups/opt_out. inline: image001.png
Re: [cfaussie] String Manipulation
There ya go: cfscript function colonise(s, out=) { return (s eq ) ? out : colonise(mid(s, 3, Len(s)), listAppend(out, left(s, 2), :)); } writeOutput(colonise(1Z0617756740260660)); /cfscript Missed a len. It just recursively runs through the string, taking two off the front of s and putting them back on out until s eq . Mark On Thu, Jul 11, 2013 at 2:09 PM, Dale Fraser d...@fraser.id.au wrote: That looks very clever, I don’t understand it so I tried to run it and work it out, ** ** But it doesn’t work for me. ** ** Mid requires 3 params but you are passing 2, so not sure ** ** Regards Dale Fraser ** ** *From:* cfaussie@googlegroups.com [mailto:cfaussie@googlegroups.com] *On Behalf Of *Robin Hilliard *Sent:* Thursday, 11 July 2013 11:26 AM *To:* cfaussie@googlegroups.com *Subject:* Re: [cfaussie] String Manipulation ** ** Or perhaps fp-style: ** ** function colonise(s, out=) { return (s eq ) ? out : colonise(mid(s, 3), listAppend(out, left(s, 2), :)); } ** ** writeOutput(colonise(1Z0617756740260660)); ** ** Cheers, Robin ** ** ** ** Robin Hilliard Chief Technology Officer RocketBoots Pty Ltd Level 11 189 Kent Street Sydney NSW 2001 Australiamap http://goo.gl/maps/RKyY9 Phone +61 2 9323 2507 Facsimile +61 2 9323 2501 Mobile +61 418 414 341 email ro...@rocketboots.com web www.rocketboots.com.au ** ** ** ** ** ** ** ** ** ** ** ** ** ** On 11/07/2013, at 12:28 AM, rai...@ozemail.com.au wrote: Hi I am trying to figure our the best way to manipulate the value using CF so I insert : after ever 2 characters as in converting 1Z0617756740260660 to 1Z:06:17:75:67:40:26:06:60 Any suggestions would be appreciated Kind Regards Claude Raiola Director image001.gif TrackingCentral Pty Ltd (A.C.N. 150 409 180) Web: www.TrackingCentral.com.au http://www.trackingcentral.com.au/ Email: i...@trackingcentral.com.au Call 1300 255 990 ** ** -- You received this message because you are subscribed to the Google Groups cfaussie group. To unsubscribe from this group and stop receiving emails from it, send an email to cfaussie+unsubscr...@googlegroups.com. To post to this group, send email to cfaussie@googlegroups.com. Visit this group at http://groups.google.com/group/cfaussie. For more options, visit https://groups.google.com/groups/opt_out. ** ** -- You received this message because you are subscribed to the Google Groups cfaussie group. To unsubscribe from this group and stop receiving emails from it, send an email to cfaussie+unsubscr...@googlegroups.com. To post to this group, send email to cfaussie@googlegroups.com. Visit this group at http://groups.google.com/group/cfaussie. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups cfaussie group. To unsubscribe from this group and stop receiving emails from it, send an email to cfaussie+unsubscr...@googlegroups.com. To post to this group, send email to cfaussie@googlegroups.com. Visit this group at http://groups.google.com/group/cfaussie. For more options, visit https://groups.google.com/groups/opt_out. -- E: mark.man...@gmail.com T: http://www.twitter.com/neurotic W: www.compoundtheory.com 2 Devs from Down Under Podcast http://www.2ddu.com/ -- You received this message because you are subscribed to the Google Groups cfaussie group. To unsubscribe from this group and stop receiving emails from it, send an email to cfaussie+unsubscr...@googlegroups.com. To post to this group, send email to cfaussie@googlegroups.com. Visit this group at http://groups.google.com/group/cfaussie. For more options, visit https://groups.google.com/groups/opt_out. image001.png
RE: [cfaussie] String Manipulation
Very nice, I love recursive functions, just don't see them often, makes me think of a lot of other uses for them I've never considered. Also nice that railo lets you get the rest of the string without specifying the length, seems like a logical thing to do. Regards Dale Fraser From: cfaussie@googlegroups.com [mailto:cfaussie@googlegroups.com] On Behalf Of Robin Hilliard Sent: Thursday, 11 July 2013 2:41 PM To: cfaussie@googlegroups.com Subject: Re: [cfaussie] String Manipulation Hi Dale, Sorry I tested in Railo, it let me get away without the third argument. The arguments as the function calls itself look like this: colonise(1Z0617756740260660,) colonise(0617756740260660,1Z) colonise(17756740260660,1Z:06) colonise(756740260660,1Z:06:17) ... until the first argument is , at which point the first part of the ternary expression triggers and returns the second argument. Cheers, Robin [cid:image001.png@01CE7E45.6DFC5660] Robin Hilliard Chief Technology Officer RocketBoots Pty Ltd Level 11 189 Kent Street Sydney NSW 2001 Australiamaphttp://goo.gl/maps/RKyY9 Phone +61 2 9323 2507 Facsimile +61 2 9323 2501 Mobile +61 418 414 341 email ro...@rocketboots.commailto:ro...@rocketboots.com web www.rocketboots.com.auhttp://www.rocketboots.com.au/ On 11/07/2013, at 2:09 PM, Dale Fraser d...@fraser.id.aumailto:d...@fraser.id.au wrote: That looks very clever, I don't understand it so I tried to run it and work it out, But it doesn't work for me. Mid requires 3 params but you are passing 2, so not sure Regards Dale Fraser From: cfaussie@googlegroups.commailto:cfaussie@googlegroups.com [mailto:cfaussie@googlegroups.comhttp://googlegroups.com] On Behalf Of Robin Hilliard Sent: Thursday, 11 July 2013 11:26 AM To: cfaussie@googlegroups.commailto:cfaussie@googlegroups.com Subject: Re: [cfaussie] String Manipulation Or perhaps fp-style: function colonise(s, out=) { return (s eq ) ? out : colonise(mid(s, 3), listAppend(out, left(s, 2), :)); } writeOutput(colonise(1Z0617756740260660)); Cheers, Robin image001.png Robin Hilliard Chief Technology Officer RocketBoots Pty Ltd Level 11 189 Kent Street Sydney NSW 2001 Australiamaphttp://goo.gl/maps/RKyY9 Phone +61 2 9323 2507 Facsimile +61 2 9323 2501 Mobile +61 418 414 341 email ro...@rocketboots.commailto:ro...@rocketboots.com web www.rocketboots.com.auhttp://www.rocketboots.com.au/ On 11/07/2013, at 12:28 AM, rai...@ozemail.com.aumailto:rai...@ozemail.com.au wrote: Hi I am trying to figure our the best way to manipulate the value using CF so I insert : after ever 2 characters as in converting 1Z0617756740260660 to 1Z:06:17:75:67:40:26:06:60 Any suggestions would be appreciated Kind Regards Claude Raiola Director image001.gif TrackingCentral Pty Ltd (A.C.N. 150 409 180) Web: www.TrackingCentral.com.auhttp://www.trackingcentral.com.au/ Email: i...@trackingcentral.com.aumailto:i...@trackingcentral.com.au Call 1300 255 990 -- You received this message because you are subscribed to the Google Groups cfaussie group. To unsubscribe from this group and stop receiving emails from it, send an email to cfaussie+unsubscr...@googlegroups.commailto:cfaussie+unsubscr...@googlegroups.com. To post to this group, send email to cfaussie@googlegroups.commailto:cfaussie@googlegroups.com. Visit this group at http://groups.google.com/group/cfaussie. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups cfaussie group. To unsubscribe from this group and stop receiving emails from it, send an email to cfaussie+unsubscr...@googlegroups.commailto:cfaussie+unsubscr...@googlegroups.com. To post to this group, send email to cfaussie@googlegroups.commailto:cfaussie@googlegroups.com. Visit this group at http://groups.google.com/group/cfaussie. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups cfaussie group. To unsubscribe from this group and stop receiving emails from it, send an email to cfaussie+unsubscr...@googlegroups.commailto:cfaussie+unsubscr...@googlegroups.com. To post to this group, send email to cfaussie@googlegroups.commailto:cfaussie@googlegroups.com. Visit this group at http://groups.google.com/group/cfaussie. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups cfaussie group. To unsubscribe from this group and stop receiving emails from it, send an email to cfaussie+unsubscr...@googlegroups.commailto:cfaussie+unsubscr...@googlegroups.com. To post to this group, send email to
Re: [cfaussie] String Manipulation
On 11/07/2013, at 2:47 PM, Dale Fraser d...@fraser.id.au wrote: I love recursive functions, just don’t see them often, makes me think of a lot of other uses for them I’ve never considered. Cool, inspiration is good :-). This is a classic functional programming approach - start with the result (an empty input and a completed output) then work out the step-wise process to get there from the input. I should point out that because the recursion is on the last line of the function this is tail recursive - the compiler will notice this and optimise the code by throwing away the current stack frame (which would have been used by later statements in the function had they existed) each time the recursive call is made, so you don't need to worry about a stack overflow - this is how functional languages iterate efficiently. Cheers, Robin Robin Hilliard Chief Technology Officer RocketBoots Pty Ltd Level 11 189 Kent Street Sydney NSW 2001 Australia map Phone +61 2 9323 2507 Facsimile +61 2 9323 2501 Mobile +61 418 414 341 email ro...@rocketboots.com web www.rocketboots.com.au -- You received this message because you are subscribed to the Google Groups cfaussie group. To unsubscribe from this group and stop receiving emails from it, send an email to cfaussie+unsubscr...@googlegroups.com. To post to this group, send email to cfaussie@googlegroups.com. Visit this group at http://groups.google.com/group/cfaussie. For more options, visit https://groups.google.com/groups/opt_out. inline: rb_logo.png