2 added 51 characters in body
source | link

PowerShell, 2323 24 bytes

+1 byte to fully match rules

"$args"-match"match"^(.+)\1+$"

Try it online!Try it online!

Pretty boring. Based on the other Regex answers. Luckily PowerShell doesn't use \ as an escape character!

PowerShell, 23 bytes

"$args"-match"(.+)\1+$"

Try it online!

Pretty boring. Based on the other Regex answers. Luckily PowerShell doesn't use \ as an escape character!

PowerShell, 23 24 bytes

+1 byte to fully match rules

"$args"-match"^(.+)\1+$"

Try it online!

Pretty boring. Based on the other Regex answers. Luckily PowerShell doesn't use \ as an escape character!

1
source | link

PowerShell, 23 bytes

"$args"-match"(.+)\1+$"

Try it online!

Pretty boring. Based on the other Regex answers. Luckily PowerShell doesn't use \ as an escape character!