I want to match all strings between 2 asterisks without spaces at the start or at the end, also I don't want to match only asterisks text.
For example:
* text* //don't match
******** //don't match
*text * //don't match
* text * //don't match
* text* //don't match
*text* //match
*Hello World !* //match
I have tried:
(?<=\*)(?!\s)(.*?)(?!\s)(?=\*)
But it's only working on the space in the start, as you can see: https://regex101.com/r/Hpe0br/3/