How can I express this please.
I want to be able to have a regular expression where it excepts any key input
Currently I have
\w
How would I specify it to ignore the numpad (.)
Matt
How can I express this please.
I want to be able to have a regular expression where it excepts any key input
Currently I have
\w
How would I specify it to ignore the numpad (.)
Matt
Hi there,
I’m a complete noob but i do know that you can exclude things in REGEX like so:
[^a]
Which means anything except 'a’
Now you only have to figure out what the numpad (.) is
I’m not sure if it’s even possible…
(here’s an excellent online guide and tester: https://regex101.com)
I found something like that and finding what the numpad dot is, I tried to use the set Variable to text , triggervalue, again I am noob and i couldn’t copy it across. it shows ⌹.
I’m unclear about what you’re asking but in a regex you have to escape a . with a backslash: .
Not sure that helps.
Is this for a Macro Trigger, or for using in a Prompt for User Input?
In either case, the RegEx is:
[^\.]
If this is for a Typed String Trigger, then let me caution you that it could be very dangerous, triggering on everything you type, except for the period (".").
Do you really need to allow the normal keyboard period, but ignore the numeric pad period? The above RegEx excludes both. I'm not sure if it can be limited to the numeric keypad. That would require additional research.