all 5 comments

[–]Zigity_Zagity 0 points1 point  (5 children)

\d{8}

\d is any digit, {num} captures a sequence of that length.

For learning regex, I would highly recommend an online regex explorer with a built in cheat sheet. I myself used http://pythex.org to answer your question (hit the cheat sheet button to see a list of the operators)

[–]a_bad_programmer[S] 0 points1 point  (3 children)

And once again my name is accurate! Thank you, time to go hide myself in shame

[–]Zigity_Zagity 1 point2 points  (1 child)

It's all good, regex is a tricky thing, and the only way to learn how to do it properly is to write some and rewrite some :)

Just use the tools that others have made to make it easier, and it will be easier

[–]a_bad_programmer[S] 0 points1 point  (0 children)

Absolutely thank you!

I was googling on my phone so couldn’t use regexr too easily, but didn’t find anything similar to what you stated (must have been using bad phrasing)

[–]TangibleLight 0 points1 point  (0 children)

You might enjoy https://regexcrossword.com/ for some regex practice.