[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
Looking for regex to match Trips
Images are sometimes not shown due to bandwidth/network limitations. Refreshing the page usually helps.

You are currently reading a thread in /wsr/ - Worksafe Requests

Thread replies: 7
Thread images: 3
File: 1453267058591.jpg (116 KB, 597x755) Image search: [Google]
1453267058591.jpg
116 KB, 597x755
4chanx offers
/(\d)\1$/
as code to match dubs-or-better
but this matches 10% of all numbers.
What would be the regex to only match when number ends in 3-or-more repeating numbers?
thanks
>>
>>85675
Try
/(\d)(\1)+$/
>>
>>85766
That's still matching dubs also :(
>>
wouldn't /(\d)\1\1$/ work? little clumsy looking but w/e
>>
File: 1416198751468.jpg (66 KB, 960x638) Image search: [Google]
1416198751468.jpg
66 KB, 960x638
>>85787
thanks, that works
>>
>>85781
Oh, misread the request
there's
/(\d)(\1){2,}$/
>>
File: mcarthur.jpg (35 KB, 420x281) Image search: [Google]
mcarthur.jpg
35 KB, 420x281
thanks, also works
Thread replies: 7
Thread images: 3

banner
banner
[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y] [Home]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com, send takedown notices to them.
This is a 4chan archive - all of the content originated from them. If you need IP information for a Poster - you need to contact them. This website shows only archived content.