Webmaster Forum


Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Coding Forum Problems with your code? Let's hear about it.

Bidding Directory   High Bandwidth Dedicated Servers   V7N Directory

Reply
 
LinkBack Thread Tools Display Modes
Old 11-28-2005, 09:54 AM   #1 (permalink)
Contributing Member
 
DragonEye's Avatar
 
Join Date: 10-13-03
Location: Belgium
Posts: 322
iTrader: 0 / 0%
Latest Blog:
None

DragonEye is liked by somebodyDragonEye is liked by somebodyDragonEye is liked by somebodyDragonEye is liked by somebodyDragonEye is liked by somebody
Send a message via MSN to DragonEye
PHP regular expressions

hi there,

I have a question about regular expressions in PHP. I can now make patters to search whatever I am looking for. But I am looking for a pattern in a page of HTML. the pattern is the following:

$pattern="<a href=[\"]([a-zA-Z0-9/.-]+)[\"]>"

the pattern is just to search the destination of links on a certain webpage, and all the links on the page are formulated in a way that this pattern finds em.

But when i use eregi() it only gives back an array with the data from the first occurence of the pattern. I want an array that gives me all the urls on the page

Matt.
DragonEye is offline  
Add Post to del.icio.us
Reply With Quote
Sponsored Links
SEO Hosting by HostGator  Advertise Here  Buy Blog Links
Old 11-28-2005, 02:58 PM   #2 (permalink)
Possible Terrorist
 
kwvarga's Avatar
 
Join Date: 10-13-03
Location: Tuscaloosa, AL or Atlanta
Posts: 4,904
iTrader: 0 / 0%
Latest Blog:
A+ Certification

kwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web pro
Send a message via AIM to kwvarga
You may want to look at

http://us2.php.net/manual/en/functio...-match-all.php
__________________
Kyle Varga
"m3lt/theSpear"
student, web designer/coder, future IT consultant
Experience: PHP/MySQL, Java, C++, MS-SQL
kwvarga is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
 Charactors Show up when saving with M$ Expressions richardvan1 Web Design Lobby 2 10-26-2007 01:15 PM
Top Ten Google Words & Expressions peter_d Google Forum 0 07-12-2007 08:38 PM
Regular Expressions georgechristodoulou Coding Forum 9 12-01-2006 03:14 PM
Regular Expressions Help ATLien Coding Forum 5 05-10-2006 11:25 PM
Google and abbreviations/expressions baldlygo Google Forum 2 05-01-2004 06:08 PM


Sponsor Links
Get exposure! Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 07:48 AM.
© Copyright 2008 V7 Inc