NOT A DUPLICATE OF Regex for Markdown Emphasis
but an upgrade.
The perfect regex posted into the answer covers only the case with underscores but Markdown support also asterisks.
TLTR: I need a regex to match markdown emphasis with
- Not spaces before and after (
*) both at beginning end ending of the match
- Not double (
*) at beginning at ending
- No different start-end like
My attemp to solve the problem is
But doesn’t cover the perfectly the case with
Here is an example with some tests. Should match only the