Filtering for a phrase using pregmatch


Posted on 16th Feb 2014 07:03 pm by admin

Here is my code which looks for addresses which start with ' src=" '

Code: [Select]preg_match_all('#src="(http://[^"]+)#', $value, $matches)
I want to modify this so that it only returns matches which contain the phrase "pass". So src="http://www.example.com/blah/pass/edu" would be picked up.

Can someone kindly tell me how to do this? Thank you so much

No comments posted yet

Your Answer:

Login to answer
118 Like 16 Dislike
Previous forums Next forums
Other forums

Applet JTextField Size Problem
Hello,

I recently started making an applet to calculate certain values for airplanes. However

Calling variables
I want to call this to my website but it doesn't display what I want it to,

Code: <h5&

Onclick problem in Firefox
Hi,
I am using a . It doesn't seem to

Displaying image pathname instead of image
Hello

Im trying to upload and then display images from a mysql database - Its only basic and

Menu restriction
How can I restrict the individual menu that would appear when a user logs in so that all users are c

GIS appliction help
I found some tutorials in the internet to develop a map application I don't want to use google maps

insert quotes
Hi,

I have an output like this:
Code: john,18,Cancer
How can I change this to
Code:

updating a single value to multiple non consecutive rows
I need to update the same value to multiple non consecutive rows. I need to add an experation date t

List/Menu Box
On an edit page when you want something to select what a user has previously selected from the datab

php include email form with attachment
I have had no luck with finding a email form all over the Internet for various reasons. Some insecur

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash