I know regex

Revision history
Tags: regex

if you were wondering… I fucking know regex. Two years ago I didn’t. I remember wondering if I would ever understand those cryptic patterns.

const clean = str.replace(/f[u]+ck\S*/g, '*')

I made it <3

If you have any comments or feedback, please send me an e-mail. (stig at stigok dotcom).

Did you find any typos, incorrect information, or have something to add? Then please propose a change to this post.

Creative Commons License This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.