On regexp

Written By Sanjir Habib On May-3rd, 2021
/.*/ matching is unwanted as it will match more than what you want.

Rather go for /.*?/. As this matches the minimal string that needs matching which is what most of us want.

Note the question sign after the star. The difference is made by it.