in reply to check for power of a number with regex
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.
|
|---|