[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

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

[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.
If a post contains illegal content, please click on its [Report] button and follow the instructions.
This is a 4chan archive - all of the content originated from them. If you need information for a Poster - you need to contact them.
This website shows only archived content and is not affiliated with 4chan in any way.
If you like this website please support us by donating with Bitcoin at 1XVgDnu36zCj97gLdeSwHMdiJaBkqhtMK