View Full Version : regex help please
Alan92RTTT
05-04-2013, 12:03 AM
Can someone that understands regex change this patter to work with with http or https?
http:\/\/www\.youtube\.com\/watch\?.*v=([a-z0-9-_]+)
Thanks
stealthify
05-04-2013, 12:30 AM
https?:\/\/www\.youtube\.com\/watch\?.*v=([a-z0-9-_]+)
Here you go. :)
Alan92RTTT
05-04-2013, 01:31 AM
Thats all? Just add the ?
Alan92RTTT
05-04-2013, 01:39 AM
Testing
https://www.youtube.com/watch?v=H96-TwrwY7M
http://www.youtube.com/watch?v=jJ5l5ls0hP4
stealthify
05-04-2013, 01:41 AM
Yep, you got it. :)
Powered by vBulletin® Version 4.2.3 Copyright © 2026 vBulletin Solutions, Inc. All rights reserved.