Listen for Regex
Posted: Tue Jan 25, 2022 4:55 pm
I know that regex support has already been mentioned in a thread, and noted as maybe too advanced for the typical user.
Either way, i'll try my luck with this request as maybe an advanced user
Example:
There would be a checkbox to activate Regex mode
Allowing the following:
open forge
open magic
play forge
play magic
start forge
start magic
as
(open|play) (forge|magic)
For * scenatios, no need to resolve as this comes free with regex:
calculator *
to
calculator .*
For $ scenarios, maybe using regex named groups:
search for $
to
search (?<q>\w+)
Maybe even allow multiple custom named group to be applied to the parameter input:
Listen for: (show|display) infobox (?<p1>\w+) and (?<p2>\w+) please
Parameters: infobox "first param <p1> and the second param <p2>"
Either way, i'll try my luck with this request as maybe an advanced user
Example:
There would be a checkbox to activate Regex mode
Allowing the following:
open forge
open magic
play forge
play magic
start forge
start magic
as
(open|play) (forge|magic)
For * scenatios, no need to resolve as this comes free with regex:
calculator *
to
calculator .*
For $ scenarios, maybe using regex named groups:
search for $
to
search (?<q>\w+)
Maybe even allow multiple custom named group to be applied to the parameter input:
Listen for: (show|display) infobox (?<p1>\w+) and (?<p2>\w+) please
Parameters: infobox "first param <p1> and the second param <p2>"