extract text between asterisk

Hi, I need to extract text between asterisk. I’ve used:

REGEXP_EXTRACT(Field , '[^*]+[^*]')

And the result is..

               FIELD:                                                                                                                       EXTRACTION:
OK!                      *text_to_extract*_1_anything_else_                                                       text_to_extract

OK!                      *text_to_extract*_2_anything_else_                                                       text_to_extract

OK!                      *text_to_extract*_3_anything_else                                                         text_to_extract

Mistake               text_before_asterisk_*text_to_extract*_4_anything_else_                text_before_asterisk_

The expression works but not at the last line, where is getting the text before the asterisk, not between them…

Some idea to do that?

Thanks!!!

0 0 115
0 REPLIES 0
Top Labels in this Space
Top Solution Authors