Regex help needed pls :)

Can’t work it out…

I want to extract everything after a character (~). I have a list of texts, each item has the list position (as a ‘#’)and ‘~’ in it, for example:
1~8
2~10
3~12

I want to end up with:
8
10
12

as my list of texts…

Thanks! :slight_smile:

Hi there, @thethinklab.au… have you tried using the :split by operator to split each item in the list by a ~ character and then get the last item in the split?

Best…
Mike

1 Like

This is the way.

I just discovered :split and it will do what you want.

This topic was automatically closed after 70 days. New replies are no longer allowed.