Challenge 10

#️⃣

Hashtags

Open in Code Editor or Copy Instructions
...solutions at bottom of page...

Create a procedure to output hashtags in a message - e.g.

Examples:

#Talk is #cheap. Show me the #code. - #LinusTorvalds

Should output: "Talk", "cheap", "code", "LinusTorvalds"

Extension:

Also detect @username strings, outputting the list of all referenced user names in the message too

Solutions

IGCSE 0478 / O-Level 2210 A-Level 9618