Method to extract words: use regular expressions
P粉608647033
P粉608647033 2023-09-14 17:13:53
0
1
616

How to extract the dog breed from this URL https://images.dog.ceo/breeds/husky/n02110185_11841.jpg? Considering that the variety changes, what is the regex to extract the content between breeds/ and next/?

P粉608647033
P粉608647033

reply all(1)
P粉176151589

breeds\/([^\/] ) should meet your requirements.

However, regular expressions don't seem to be suitable for this case. I suggest you parse the URL and extract the required part from the path.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template