Regex for chatbot to match & extract multiple command

Published on Tue Mar 01 2022

Example: "/lowercase HELLO .:uppercase ::weather london" ===Match #1 prefix: / command: lowercase arguments: HELLO ===Match #2 prefix: .: command: uppercase arguments: - ===Match #3 prefix: :: command: weather arguments: london