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?
Perhaps a simple SUBSTRING could solve your problem:
SELECT substring('RT @John: Hello world! @Peter Hello!', 'RT @(.*):');