So basically i want to get the user from a message that has a starting special character like "@" or "#" and push it to the user_lists without the special character only the user.
I know about using regex for matching but im having troubled with pushing every match to an array.
const user_lists = []
const sample_message = '@user and #user2 has a challenge of time management'
My idea was to use includes but it only return as boolean. Please help.
Valid usernames: Without spaces and special character. Just getting all the usernames with a starting @ or #
wild poker,wild-pokerorƒußvalid?