regex to match numbers numbers divisible by 15 code example Example: Regex for number divisible by 5 ^[+-]?[012]?\d:[012345]?[05]$