Home > OS >  How to match with "\*" but not with "/\*" in Regex?
How to match with "\*" but not with "/\*" in Regex?

Time:12-06

I need to match all the * in a txt, but not when the * is preceded by a /.

I have tried with: [^/]\*

But when match, it matches with * and not with *.

Any suggestions?

CodePudding user response:

You can use a enter image description here

  • Related