http://qs321.pair.com?node_id=803186

spx2 has asked for the wisdom of the Perl Monks concerning the following question:

Is there any regex(without using ?{} or ??{} blocks, backreferences however are allowed)that can test if a number is a power of some other number ?

'1'x$number =~ /REGEX_GOES_HERE/

For example, given $number and b, to find if there is any c so that $number=bc(not explicitly finding c, merely proving it exists is enough)

'11111111' =~ /REGEX/ for b=2 would match since there are 8 ones in between quotes