|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Regular Expression
Hi!
I need to build an index of a project that I'm building, but I have a problem. Here it goes. I need to index starting for the root page (http://localhost/) but I need the script to follow up the hyperlinks inside each page, to fetch the real URL and the words of each page. I looked for some regular expressions on the web and on php's website... but all of them gives me an error or don't bring the results correctly... Can anyone who knows Regular Expression help me with this?!
__________________
Regards, Ramiro Varandas Jr. |
|
#2
|
|||
|
|||
|
Ramz,
What's the code you have right now, and what error(s) are you receiving?
__________________
____________________________________________ Developer Shed Weekly Writer | DevArticles Forum Moderator Build Your Own KlipFolio Klip With PHP FrankManno.com - Under Construction Design Interactive Group - Under Construction |
|
#3
|
|||
|
|||
|
I solved the problem...
Here is how I solved the problem... I tried a lot of regexp from many sites I've went to... but this simple one solved my problem.
preg_match_all("/href=\"(.*)\"/i", $page, $links); Hey Frankie... thanks anyway for your support!! |
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > Regular Expression |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|