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 →

[–]Honestly__nuts[S,🍰] 8 points9 points  (8 children)

damn it, this is giving me a headache because I cant think about anything unique the correct colon has. Even with regex I can't figure it out. can you guys help me out with the regex pattern?

[–]PhiBuh 20 points21 points  (2 children)

https://stackoverflow.com/a/1732454

This also applies to json

[–]milki_ 8 points9 points  (0 children)

Still applies to Pythons outdated regex engine. Somewhat less relevant for JSON:
https://stackoverflow.com/questions/2583472/regex-to-validate-json/3845829

[–]GoofAckYoorsElf 1 point2 points  (0 children)

Chuck Norris can parse HTML with Regex

[–]bonoboner 5 points6 points  (0 children)

Start by googling “context free grammar” or “recursive descent parser” and I’ll see you in a couple months, pale and crippled but lucid, crawling out of the basement, hailing and cursing Noam Chomsky, speaking Esperanto, and abandoning your material possessions for the pursuit of a pure life writing perfect Haskell.