I hope you are doing well. I have a question regarding parsing SoundCloud "/sets/" URLs using regular expressions in PHP.
I am currently working on a project where I need to extract information from SoundCloud sets URLs. For those who are unfamiliar, a SoundCloud set is a collection of tracks curated by a user.
Let me provide some background information about my project. I am building a music discovery app where users can find and listen to various music sets from SoundCloud. In order to properly display and play the sets, I need to extract the necessary information such as the set ID or slug from the URL.
For example, I would like to extract the set ID or slug from a URL like this: "https://soundcloud.com/user/sets/set_name". The set ID or slug is usually a string of numbers or characters that identifies the specific set.
Now, I understand that using regular expressions in PHP would be a suitable solution for parsing the SoundCloud sets URLs. However, I am not very familiar with regular expressions, so I am seeking guidance on how to construct the appropriate regex pattern for this task.
If anyone has experience in parsing SoundCloud URLs or has worked with regular expressions in PHP, I would greatly appreciate your help. Specifically, I am looking for assistance in constructing the regular expression pattern that can extract the set ID or slug from the "/sets/" URL.
Thank you in advance for your assistance and expertise. I am excited to learn from the knowledgeable members of this forum!