Solved

Remove all text between two characters.

  • 19 September 2022
  • 2 replies
  • 295 views

Badge +3

Hi,

I have multiple strings that are in this format 560_20170619_0900, I would like to remove all before and after the '_', leaving me with just 20170619. Is this possible using the attribute trimmer and regex?

Thanks

B

icon

Best answer by nielsgerrits 19 September 2022, 16:03

View original

2 replies

Userlevel 6
Badge +31

I reckon this can be done usin' only a StringSearcher 'n a regex:

(?<=_).*?(?=_)

Found it here.

Badge +3

I reckon this can be done usin' only a StringSearcher 'n a regex:

(?<=_).*?(?=_)

Found it here.

Thanks Niels, worked perfectly!!

Reply