Sign in to follow this  
Followers 0
Ghost21

Filter characters

3 posts in this topic

When I and entry to an sql database and it has a character that sql doesn't like it seems to crash the program. How can I filter out

' " ; : < > !@#$%^&* | \ ~` <---- These characters,.

Thanks

Share this post


Link to post
Share on other sites



I dont know much about sql but i guess can do _URLEncode and then send the text as it is , search it in the forum and redefine it so sot you.

About removing that characters..

I think you can do StringReplace and i guess you can do it in one time by using StringRegExpReplace but i assume that it will be harder...

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Here:

$input = "; : < > !@#$%^&* | \ ~` Testing..."
$output = StringRegExpReplace($input,"[ '; : < > !@#$%^&* | \\ ~`]","")
ConsoleWrite( $output & @CRLF)
Edited by jokke

UDF:Crypter a file encrypt / decrypt tool with no need to remember a password again. Based on Caesar cipher using entire ASCII Table.Script's: PixelSearch Helper, quick and simple way to create a PixelSeach.Chatserver - simplified, not so complicated multi-socket server.AutoIT - Firewall, simple example on howto create a firewall with AutoIt.

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