How to get the Regex working to get the value after the colon

Hi team,

after using the Type:Text, it can get the data as beneath
=============================current start=============================
Value: ABC
=============================current end=============================
while: i only want the real data, so how to get the real target via the Regex?
=============================target start=============================
ABC
=============================target end=============================

thanks.

For this, positive lookbehind can be used.
The following expression will match anything after a colon, until a line break:
(?<=:).+

1 Like

it works, thanks, Mate!

hi...
though it works for most of the scenarios, it happened to be unworking for this one:
=============================current start=============================
Value: ABC+
=============================current end=============================
while: i only want the real data, so how to get the real target via the Regex?
=============================target start=============================
ABC+
=============================target end=============================

i think it's the "+" to cause the issue, but just don't know how to modify your regex script(tried several random variants while all got no dice), can you guide for this?

thank you and have a nice day ahead!