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
In reply to check for power of a number with regex by spx2
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |