❔ ✅ 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?
<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?


