473,324 Members | 2,196 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

Filter Special Characters

ilikesuresh
Hi,
I need a way to remove special characters in C.
do you have any way other than checking ascii values?

Please let me Know

Thanks in advance
Nov 13 '07 #1
3 2357
sicarie
4,677 Expert Mod 4TB
I would recommend starting by defining what a 'special' character is. Is it something you can type? Or something else?
Nov 13 '07 #2
I would recommend starting by defining what a 'special' character is. Is it something you can type? Or something else?
The characters other than [a-z] and [A-Z] are special characters right?
I want to allow only these characters in my program. If you type other than this ,
I need a way to find and filter or notify the user to type other than these characters
Nov 14 '07 #3
sicarie
4,677 Expert Mod 4TB
The characters other than [a-z] and [A-Z] are special characters right?
I want to allow only these characters in my program. If you type other than this ,
I need a way to find and filter or notify the user to type other than these characters
So a comma, period, or another form of punctuation are not special?

In that case, I'd declare a char, read it in, and compare its value to see if it is in the range of a-z or A-Z.
Nov 14 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: Roy W. Andersen | last post by:
I've been searching google about this for days but can't find anything, so I'm hoping someone here can help me out. I'm trying to create zip-files without needing the zip-file extension in PHP,...
3
by: Barry Olly | last post by:
Hi, I'm working on a mini content management system and need help with dealing with special characters. The input are taken from html form which are then stored into a varchar column in...
3
by: Alex Ng | last post by:
Hi, I have a form with an unbound textbox for entering a name to search for with strSQL = "SELECT * FROM main " & "WHERE main. = ' " & Me.SurnameSearch & " ' " this works fine for the...
5
by: Sakharam Phapale | last post by:
Hi All, I am using an API function, which takes file path as an input. When file path contains special characters (@,#,$,%,&,^, etc), API function gives an error as "Unable to open input file"....
1
by: sonald | last post by:
Dear All, I am working on a module that validates the provided CSV data in a text format, which must be in a predefined format. We check for the : 1. Number of fields provided in the text file,...
4
by: bgreer5050 | last post by:
I have a form with various fields with a double click event to bring up a filter via a query. Is it possible to goto another field and apply another filter only to the records that were found...
7
by: sudhaMurugesan | last post by:
Hi all, Do anyone know the code to filter alphanumeric characters alone during keypress event. I've tried but its allowing special characters like ! for 1 , @ for 2 etc. My code is ...
3
KevinADC
by: KevinADC | last post by:
Purpose The purpose of this article is to discuss the difference between characters inside a character class and outside a character class and some special characters inside a character class....
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.