Jump to content
Sign in to follow this  
Dampe

String manipulation :p

Recommended Posts

Dampe

does anyone know of a UDF that can be used to erase out anything that isn't an alphebetical, or numberical character from a string?

E.g. turn

:Dampe0

into

Dampe

Anything would be apperciated

Edited by Dampe

Share this post


Link to post
Share on other sites
smashly

Hi,

$SRER = StringRegExpReplace(":Dampe0", "(?i)[^a-z]", "")
ConsoleWrite($SRER & @LF)oÝ÷ ØGbµ§ízºÞ­æx2¢êé¢ËmêÞßÛéz½"*.®«¨´H-º¹êºR¢'È~e£Â­Ê°j{^vÚ$yêméî·«jÌ[azr7õÛ¬y«­¢+ØÀÌØíMIHôMÑÉ¥¹IáÁIÁ± ÅÕ½Ðìè1µÁ|ÀXÅÕ½Ðì°ÅÕ½ÐìÀäÈíÅÕ½Ðì°ÅÕ½ÐìÅÕ½Ðì¤)
½¹Í½±]É¥Ñ ÀÌØíMIHµÀì1¤

Cheers

Edited by smashly

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.