I’m trying to pull the spotify id from a spotify uri (e.g. spotify:track:5xioIP2HexKl3QsI8JDlG8) I know this should be quite easy, but I can’t seem to get anything to validate on http://regexpal.com/.
What I have so far is:
spotify:track:[a-zA-Z0-9]{22}
But it pulls the whole string, how can I make it only pull after the colon?
The regular expression is fine, but you need to group the id part (with
()), so that it can be captured:DEMO.