1
I am using this regular expression to capture data between asterisks:
\*(.+)\*
however it miscaptures when the text is filled with asterisks, for example in:
oi pessoas *lindas* e pessoas *lindos*
she understands only the most external asterisks capturing all the lindas* e pessoas *lindos
being that it was to capture only lindas
and lindos
separately.
Is there any way to adapt it so that it picks up separately? Using some space condition or something..?
https://regexr.com/3kvab for everything (numbers and letters)
– Miguel
would be like instead of specifying what I want, specify what I would not like? Like leave everything but space
– Vinícius Lara
@user3163662 Yes. Just add
^
inside the brackets.– Valdeir Psr