Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


find "&" at end of string and delete

Posted on 2010-01-11
Medium Priority
Last Modified: 2013-12-24
I am trying to strip an url and cna do most of it except get rid of the "&" which is somethimes left at the end of the string. below I can get rid of "&language=english
 <cfset CurrentURL = replacenocase(CurrentURL, "&language=english", "", 'all')>

how would I use a regex to get rid of any "&" at the end of the string?
Question by:Shawn
LVL 19

Accepted Solution

erikTsomik earned 2000 total points
ID: 26287719

Author Comment

ID: 26287941
ended up with
<cfset CurrentURL = rereplacenocase(CurrentURL, "[&]+$", "", 'all')>

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A web service (http://en.wikipedia.org/wiki/Web_service) is a software related technology that facilitates machine-to-machine interaction over a network. This article helps beginners in creating and consuming a web service using the ColdFusion Ma…
Lease-to-own eliminates the expenditure of hardware replacement and allows you to pay off the server over time. Usually, this is much cheaper than leasing servers. Think of lease-to-own as credit without interest.
The Relationships Diagram is a good way to get an overall view of what a database is keeping track of. It is also where relationships are defined. A relationship specifies how two tables connect to each other. As you build tables in Microsoft Ac…
Enter Foreign and Special Characters Enter characters you can't find on a keyboard using its ASCII code ... and learn how to make a handy reference for yourself using Excel ~ Use these codes in any Windows application! ... whether it is a Micr…
Suggested Courses

580 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question