Dynadot Black Friday and Cyber Monday 2026: save more on domains. See our sales.

Find query string parameter from a string - PHP

SpaceshipSpaceship
SpaceshipSpaceship
Namecheap AuctionsNamecheap Auctions
Watch

Ik

Quality //VIP Member
Impact
8
0
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
Look into using preg_match_all

Something like...
$string = "http://www.youtube.com/watch?v=xy2Q3...&feature=feedf";
preg_match_all('/http://www.youtube.com/watch?v=.+?&/', $string, $extracted);

You'll need a better regular expression to account for your "..." in the url. Good luck.
 
0
Close
CatchedCatched

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

New: watch any domain
You can now watch domains on NamePros. We check each one and notify you when something changes. Search for a domain and press Watch on...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back