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.
Did you know?Explore Trending and Topic pages for more stories like this.

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

MySQL-PHP Query Results Help
Hello all. I'm hoping to be able to get some help in solving a problem with query/rowcount output. I

mysql UNION | warning mysql_fetch_array !!
Code: <?php
$i = 0;
$query1="SELECT * FROM `products` WHERE `div

Log $_POST
How would i log submits on a form, by everyone? I want to then echo the number of submissions.

a function to check directory depth
I'm working on a php script to upload files in to a set directory.
the user can select to upload

Working with Dates, help.
Sooo to make a long story short, here's what im trying to accomplish.

I need to create a drop

Solution to the FindControl problem
I have seen may posts about having problems with the FindControl method. Most seem to come about bec

Backflush
I am looking for a report in SAP that would give me a list of all parts that are populated with a ba

upload image name with extension using php
hi frds..

<input id="file1" type="file" name="file[]" &a

Not loading image
When this function gets loaded it doesn't load the image just trying to figure out why.

Code:

AUTONUMBER PROBLEM
Hello Everyone,

My name is Jones and i am new to this forum and to oracle. I am using ora

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