Sign in to follow this  
Followers 0
Zohar

[Solved] How to "Clean" a String?

5 posts in this topic

#1 ·  Posted (edited)

Hello!!!

I have a String, that I would like to Clean.

By Cleaning, I mean that all Characters that are

Letters(Big/Small), Digits, and also ' ', '-', are OK.

All the rest, I would like to replace them with a '_'.

Is there a function for that?

that I can define Good chars, and telling it that all the rest should be replaced with a '_'?

thank you

Edited by Zohar

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

StringReplace(), StringRegExpReplace().

Edited by AzKay

# MY LOVE FOR YOU... IS LIKE A TRUCK- #

Share this post


Link to post
Share on other sites

thank you azkay

Share this post


Link to post
Share on other sites

there was a topic similar to this going on in the last week or the one b4 that..

It had the same requirement.. exact same.. not similar..

Just search for it on this forum.. n u'll get exactly what u need


[font="Garamond"]Manjish Naik[/font]Engineer, Global Services - QPSHoneywell Automation India LimitedE-mail - Manjish.Naik@honeywell.com

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  
Followers 0