Skip Navigation

InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)P
Posts
22
Comments
6
Joined
3 yr. ago

  • JavaScript's regex engine isn't the only one to have these problems. There certainly are other implementations, like Re2 and Rust's implementation, that don't have this issue. But they also lack some of the features of the JS implementation too.

  • While this article is about JavaScript specifically, these issues certainly exist in other regex engines too.

  • Ah, I didn’t realise there was a regex channel here. Thanks!

  • Programming @programming.dev

    A comprehensive guide to the dangers of Regular Expressions in JavaScript

    www.sonarsource.com /blog/vulnerable-regular-expressions-javascript/
  • The only real way to validate an email address is send it an email and see if it arrives! I'm sure many of us have fallen to the urge to validate an email with a regex though, and yes, it's just too dangerous! I definitely like the simplicity of checking for an @.

    I think regular expressions are actually very tempting to use because they seem hard. I feel like I go through this XKCD comic every time the opportunity to use a regex comes up. But string functions often have the answer. I hope, if this article achieves anything, it just stops people using regex to trim whitespace!

  • Thanks!

  • JavaScript @programming.dev

    A comprehensive guide to the dangers of Regular Expressions in JavaScript

    www.sonarsource.com /blog/vulnerable-regular-expressions-javascript/
  • JavaScript @programming.dev

    Speeding up the JavaScript ecosystem - Polyfills gone rogue

    marvinh.dev /blog/speeding-up-javascript-ecosystem-part-6/
  • TypeScript @programming.dev

    One Thing Nobody Explained To You About TypeScript

    redd.one /blog/one-thing-nobody-explained-to-you-about-typescript
  • Node.js @programming.dev

    NODE_ENV Considered Harmful

    cjihrig.com /node_env_considered_harmful
  • JavaScript @programming.dev

    Typing your JavaScript without writing TypeScript

    www.sonarsource.com /blog/typing-javascript-without-typescript/
  • JavaScript @programming.dev

    JavaScript is getting array grouping methods

    philna.sh /blog/2023/09/14/javascript-array-grouping-methods/
  • JavaScript @programming.dev

    Get the benefits of TypeScript in your JavaScript

    www.sonarsource.com /blog/benefits-typescript-in-your-javascript/
  • JavaScript @programming.dev

    Node.js 20.6.0 includes built-in support for .env files

    philna.sh /blog/2023/09/05/nodejs-supports-dotenv/
  • JavaScript @programming.dev

    What is deeper SAST in JavaScript?

    www.sonarsource.com /blog/deeper-sast-javascript/
  • TypeScript @programming.dev

    5 Inconvenient Truths about TypeScript

    oida.dev /5-truths-about-typescript/
  • Astro @programming.dev

    Easy and accessible pagination links for your Astro collections

    philna.sh /blog/2023/07/13/easy-and-accessible-pagination-links-for-your-astro-collections/