I have a regular expression http\:\/\/domainname\.com\/\S{4}
which should catch urls like this: http://domainname.com/key4
in a longer text.
I want to get only the key and match it with a table field in my postgres database.
after trying some stuff I came to this query (for grabbing keys):
SELECT substring(infos FROM '[http\:\/\/domainname\.com\/\S{4}]{7}' ) AS key FROM actions
as a result i get the /domainname.com
for each row ... well, no keys as you can see.
what am I doing wrong?
can anyone tell me what the {7}
stands for?