I'm using this regular expression to capture data between asterisks:
\*(.+)\*
however, it mistakenly captures when the text is filled with asterisks, for example:
oi pessoas *lindas* e pessoas *lindos*
It understands only asterisks outside capturing all lindas* e pessoas *lindos
being that it was only to capture lindas
and lindos
separately.
Is there any way to adapt it so that it can be taken separately? Using some condition with space or something ..?