How to match bold markdown if it isn't preceded with a backslash?
问题 I'm looking to match bolded markdown. Here are some examples: qwer *asdf* zxcv matches *asdf* qwer*asdf*zxcv matches *asdf* qwer \*asdf* zxcv does not match *qwer* asdf zxcv matches *qwer* A negative look behind like this (?<!\\)\*(.*)\* works. Except there is no browser support in Firefox, so I cannot use it. Similarly, I can get very close with (^|[^\\])\*(.*)\* The issue is that there are two capture groups, and I need the index of the second capture group, and Javascript only returns the