drifter Posted December 12, 2006 Share Posted December 12, 2006 I have these two $regex = "/<\s*input\s+[^>]*src\s*=\s*[\"']?([^\"' >]+)[\"' >]/isU"; $regex = "/<\s*img\s+[^>]*src\s*=\s*[\"']?([^\"' >]+)[\"' >]/isU";one is for img tags the other for inputs - they both work, but I am not sure how to combine them and as img or inputThanksScott Quote Link to comment https://forums.phpfreaks.com/topic/30319-easy-one/ Share on other sites More sharing options...
Zane Posted December 12, 2006 Share Posted December 12, 2006 although I've never seen an input tag with a src attribute, this is how you'd combine them/<\s?(img|input)\s+[^>]*(src\s*=\s*([\"']+.*[\"']+))?([^\"' >]+)[\"' >]/isUat least that's what I think Quote Link to comment https://forums.phpfreaks.com/topic/30319-easy-one/#findComment-139521 Share on other sites More sharing options...
drifter Posted December 12, 2006 Author Share Posted December 12, 2006 that would be an <input type="image" src="something">that was how you made pretty buttons pre CSS is basically a submit Quote Link to comment https://forums.phpfreaks.com/topic/30319-easy-one/#findComment-139531 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.