-1

Given a string, e.g.:

RT @John: Hello world! @Peter Hello!

I'd like to be able to get the part between 'RT @' and ':'. How can I accomplish this in PostgreSQL?

0

1 Answer 1

0

Perhaps a simple SUBSTRING could solve your problem:

SELECT substring('RT @John: Hello world! @Peter Hello!', 'RT @(.*):');
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.