gtbikerider
Technical User
I have a way for people to search for database records. I want to find plurals and singular so I want to strip the 's' off their keyword. So far I have
<!--- trim off the s if its plural --->
<cfif #right(Attributes.Keywords,1)# IS "s">
cfset the Attributes.Keywords to be trimmed 1 char from the right
</cfif>
Whats the bit in the middle to reset the keywords without the s on the end? Or please advise if there's a better way.
--
John
--
John
<!--- trim off the s if its plural --->
<cfif #right(Attributes.Keywords,1)# IS "s">
cfset the Attributes.Keywords to be trimmed 1 char from the right
</cfif>
Whats the bit in the middle to reset the keywords without the s on the end? Or please advise if there's a better way.
--
John
--
John