Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in C only
Search
Advanced Search
Forums
BYTES
Product Launch
Updates
Developer Toolkit
Today's Posts
Member List
Calendar
Home
Forum
Topic
C
how to remove spaces and special characters in a string using isalpha?
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
ZS369
New Member
Join Date:
Aug 2018
Posts:
8
#1
how to remove spaces and special characters in a string using isalpha?
Sep 21 '18, 01:32 PM
Wondering how to take a string and remove special characters and spaces.
Example: how are you?
would be: howareyou
weaknessforcats
Recognized Expert
Expert
Join Date:
Mar 2007
Posts:
9214
#2
Sep 23 '18, 04:56 AM
Call isalpha on each characters of your string and if isalpha returns true,then append the character to your new string.
I can help you correct code you have written but I cannot write the code for you.
Comment
Post
Cancel
donbock
Recognized Expert
Top Contributor
Join Date:
Mar 2008
Posts:
2427
#3
Sep 27 '18, 07:22 PM
You should decide whether you want to copy a space-removed version of the input string into a new output string or if you want to modify the input string itself.
Either approach can be legitimate, but the way you solve the problem will be different.
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment