Thank you. That is a useful function! I ended up answering my own question for a regex that includes negative/positive integers and negative/positive floating points.
/^(?:|-|\d+|-\d+|\d+.|-\d+\.|\d+\.\d+|-\d+\.\d+)$/
And just for clarification, this is used as a -validatecommand.
In reply to Re^2: Floating Point/Integer Regular Expression
by shortyfw06
in thread Floating Point/Integer Regular Expression
by shortyfw06
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |