Is there a way of saying "For all other Triggers"? #523
Replies: 2 comments 1 reply
-
Here are the states and triggers I've planned. In the below, underscore ("_") means "All other characters": Bang Command Parameter |
Beta Was this translation helpful? Give feedback.
-
Assuming your state machine is based on |
Beta Was this translation helpful? Give feedback.
-
I'm trying to use the package to parse a string. Certain characters start specific commands; these are obviously triggers. Every other character just needs to be added to the string being built. Is there a way, when configuring states, to say "for all other triggers, do this ..." ???
Example of what I'm trying:
input:
"This is plain text. !{B;TC:Red}This is Bold, Red text!#, text, !{C:Blue}Text with Blue background!!# boring text"
output:
This is plain text. This is Bold, Red text, text, Text with Blue background! boring text
[Bold: 20-41]
[Red:20-41]
[Blue Background:5-75]
Beta Was this translation helpful? Give feedback.
All reactions