Welcome to the Achaea Forums! Please be sure to read the Forum Rules
Basically, I'm trying to make an alias that allows me to either transmute all my chemicals on hand or a certain amount. Where I am stuck is with matching the regex with proper variables.
^synth (.+) (.+)$
That is the pattern I have now. The first variable being the metal I want to synthesise and the second being the amount. The script is an if argument that is supposed to synth them all if matches == nil and synth however many it is equal to otherwise. However, the pattern doesn't match if I just leave the second variable blank on the line (ex. synth tin). Obviously, I am not doing it right and was wondering if anyone could please tell me how or if I can either match nothing or a string like that. Thanks!