Strip Characters from String?


hi,

how can strip off characters end of string? not @ regular expressions perhaps may not need one? here data

first_name_510
last_name_2267

i need function strip off right including underscore. should left below:

first_name
last_name

any highly appreciated

regards

if underscore, , last one, should
the trick:
#left(string, len(string)-len(listlast(string, "_"))-1)#

string assumed variable holding text

azadi saryev
sabai-dee.com
http://www.sabai-dee.com/


More discussions in ColdFusion


adobe

Comments

Popular posts from this blog

Convierte tu Raspberry en un NAS. Firmware fvdw-sl 15.3 - Raspberry Pi Forums

Rasperry Wifi LAN Controller - Raspberry Pi Forums

Unlock car with bluetooth and car key