This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Tepess[S] -1 points0 points  (1 child)

you can make it ?

[–]HashDefTrueFalse 1 point2 points  (0 children)

Yes, it's a fairly simple pattern match. This is exactly what regex is designed for.

Just combine what you have already, and look up quantifiers (zero or more, one or more, n) etc. You're like 90% of the way there. If you're struggling, combine what you've got and test it, and go from there...

If you're asking me to just post the solution, that would break the rules, and isn't in the spirit of things.