I would focus on solving the square question before asking the more general question.
Having said that, there's a trivial answer: /^/ - which always matches. As there are always a b and a c: b == $number and c == 1. But I guess you aren't interested in that.
In reply to Re: check for power of a number with regex
by JavaFan
in thread check for power of a number with regex
by spx2
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |