Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
danielweber
on Dec 20, 2013
|
parent
|
context
|
favorite
| on:
Regex Golf
My guess is that 147 must appear the same number of times as 258, but I'm not sure if that's even expressible in regexp.
johnlbevan2
on Dec 20, 2013
|
next
[–]
Refined: [0369] can appear any number of times [147] and [258] must appear an equal number of times, or for any remaining: [147] must appear a multiple of 3 times [258] must appear a multiple of 3 times
recursive
on Dec 20, 2013
|
prev
|
next
[–]
No. 111 is a multiple of 3.
johnlbevan2
on Dec 20, 2013
|
prev
[–]
Sadly that wouldn't work for: 140091876 147 = 4 times 258 = 1 time
Consider applying for YC's Spring batch! Applications are open till Feb 11.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: