|
You are here |
barbtaub.com | ||
| | | | |
jenanita01.com
|
|
| | | | | Visit the post for more. | |
| | | | |
jenanita01.com
|
|
| | | | | Visit the post for more. | |
| | | | |
jenanita01.com
|
|
| | | | | Visit the post for more. | |
| | | | |
kobikobi.wordpress.com
|
|
| | | It's very easy to check a decimal number is divisible by three using a simple DFA with 3 states. A regex, therefor, is possible, but not too pretty (source): Example: http://www.rubular.com/r/ZcRDblHg8M Here's another approach, using .Net's stacks as a simple counter: Why? Well, I was bored while I shaved. Luckily, this regex is simple enough... | ||