Live data from Hacker News

Show HN: Regex Cheatsheet

ihateregex.io

131–135 of 135 posts

Re: Show HN: Regex Cheatsheet

#131
post #81

Earlier quoted context omitted.

AFAIK none of the TLDs allow for MX records on just the TLD i.e. johndoe@com will never exist

I'm not on about gTLDs like .com, I'm on about the privately owned ones like .amazon and .google

I didn't say gTLDs. The id est applies to all.

Re: Show HN: Regex Cheatsheet

#132
post #107

Earlier quoted context omitted.

Oddly, lookbehinds are evil only in a specific backtracking world. We never got around to implementing arbitrary lookarounds in Hyperscan ( https://github.com/intel/hyperscan ) but if we had done something in the automata world to handle lookaround, lookbehinds are way easier than lookaheads. To handle a lookbehind, you really only need to occasionally 'AND' together some states (not an operation you would normally d…

Even for non-fixed length expressions?

Variable-length backward asserts are fine in automata-land, which is a bit peculiar.

Re: Show HN: Regex Cheatsheet

#133

I used to use this site http://txt2re.com which is now off the grid, at the least since yesterday. :( Unlike most regex helpers, in this one you would start with the text you want to filter/parse and then it would suggest you possible extractions. Do you know any alternatives?

same, looking for an alternative to txt2re.

Re: Show HN: Regex Cheatsheet

#134

Earlier quoted context omitted.

I'm not on about gTLDs like .com, I'm on about the privately owned ones like .amazon and .google

I didn't say gTLDs. The id est applies to all.

TLDs can be managed very differently depending on the owners so I don't think it's safe to assume "applies to all" just because there is a rule in place for some gTLDs.

Re: Show HN: Regex Cheatsheet

#135
post #124
post #93

Earlier quoted context omitted.

boom. https://regex101.com/r/PxSY4U/1 technically it does parse it. :P

Nope. bar">My First Heading will misparse. (This is valid HTML 5.) You really need recursive regex or something equivalent in power, otherwise you will always fail.

Well yea, it's a joke...
Post reply on HN