Regular expression, what is obtained after the second occurrence

I have a string in the following format:

TEXT #### TEXT #### SPECIALTEXT

I need Get SPECIALTEXT, basically the content after the second occurrence of ####. I can’t do it. Thank you

The regular expression (?:.*?####){2}(.*) contains what you are looking for in the first group.

I have one A string in the following format:

TEXT #### TEXT #### SPECIALTEXT

I need to get SPECIALTEXT, which is basically the second occurrence #### After the content. I can’t do it. Thank you

Regular expression (?:.*?####){2}(.*) contains What you are looking for in the first group.

Leave a Comment

Your email address will not be published.