Jump to content

String manipulation :p


Recommended Posts

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
Link to comment
Share on other sites

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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...