evergreean43
Technical User
My current output of dynamic names in my variable (called dynNames) has a comma at the end.
I need to eliminate the last comma:
Jones, Smith, Baker, Johnson,
to look like this:
Jones, Smith, Baker, Johnson
My attempt to eliminate the last comma doesnt work because it eliminates all the commas:
Output from my bad attempt:
Jones Smith Baker Johnson
Please advise.
I need to eliminate the last comma:
Jones, Smith, Baker, Johnson,
to look like this:
Jones, Smith, Baker, Johnson
My attempt to eliminate the last comma doesnt work because it eliminates all the commas:
Code:
<cfset myNames = REReplace(dynNames, ",$" "", "All")>
<cfoutput>#myNames</cfoutput>
Output from my bad attempt:
Jones Smith Baker Johnson
Please advise.