These are posts about code I write. Expect lots of JavaScript, ReactJS and Regex content.
If you have an HTML string, and you need to find all the HTML tags with regex, here's the Regular Expression code you can use to do it.
Written by Codemzy in Code on January 18th, 2024
If you need to get HTML attributes, to check them or replace them, regex could hold the answers! Here's the Regular Expression I use, and a step-by-step guide for how I built it.
As I use a cloud IDE, sometimes the only copy of my code is in a GitHub repo. And that got me worried. Here's how I create a backup on Bitbucket.
Written by Codemzy in Code on October 12th, 2023
I’m really interested to know how people take on a big full-stack project. Do you start with the front end (client) or the back end (server)? So I’ll share my approach - which is one small feature at a time - and why it works for me.
Written by Codemzy in Code on October 10th, 2023
Once you add the Image extension to the Tiptap WYSIWYG editor, users can paste images in from HTML and the clipboard. That may (or may not be) what you want to happen. Here's how I handled image pasting in Tiptap.
Written by Codemzy in Code on February 27th, 2023
Are you trying to use custom CSS with different list types, but running into problems with uppercase lists displaying as lowercase and visa-versa? Me too! Here's more info on the problem, and how you can fix it.
Written by Codemzy in Code on June 1st, 2022
One thing I always found missing from markdown was different list types, specifically, letter and roman numeral lists. In this blog post, I'll add these list types to the popular MarkedJS markdown compiler.
Written by Codemzy in Code on May 27th, 2022
Naming your Webpack chunks helps you understand the contents of each bundle of code, and keep consistency between deploys. In this post, we look at named outputs, including dynamic imports, split chunks, and common chunks.
Written by Codemzy in Code on March 30th, 2022
Regex groups are super useful when you need to replace specific patterns in strings. In this blog post, discover how to use multiple groups to perform simple (and complex) replacements.
Written by Codemzy in Code on February 2nd, 2022
Take your regex further by breaking it down and accessing specific parts of your match with groups. Find out how you can create and use groups inside your regex with match() and matchAll().
Written by Codemzy in Code on January 12th, 2022
Transform your strings with regex, and be amazed at how your JavaScript code changes. This is the key to successfully tidying and validating your data. Regex will not only transform your code, it will change you and your strings too.
Written by Codemzy in Code on December 22nd, 2021