© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
29 replies
Chris TCC

❔ ✅ filtering, dissecting a string for processing

Not sure how to search for this online, so I'm asking here. I have a user input system, and I want to figure out how to dissect the string in code. Basically, there are different types of inputs the user can give. Examples would be:
<Text>
@text
#textand3numbers
General messages with symbols
I'd like to be able to differentiate these types of inputs, and do different actions.
I was thinking maybe using Contains(); but it can't differentiate a @text from a regular string that includes the @ symbol. Is that even possible to do this without overcomplicating things?
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

OData filtering string variable
C#CC# / help
3y ago
string inside a string
C#CC# / help
4y ago
Could you recommend a library for video processing
C#CC# / help
14mo ago