Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2003

    Post Unanswered: RE: Using Wildcards

    Is it possible to use wilde cards in php...???

    what i wish to do is cut out all the cr*p between hyperlinks and though something like this might work

    $GooglenewHTML = str_replace("</a>*<a>", "</a>\n<a>", $Googlehtml);

    What i'm trying to do ultimatly is create a meta search engine (i.e. a search engine that gets it's results from other search engines) and am struggling... so if any one know of a sample code i can use this would be ace.

    But help on the wild card problem or another way to strip out just hyperlinks would be gratefully taken.


  2. #2
    Join Date
    Jan 2003
    create a fonction that read the string, search for the first <a> to the first </a> get the string inside, cut your string, ....

    i don't think you have other solution in php.

  3. #3
    Join Date
    Dec 2002
    You're going to want to look at regular expressions for what you're doing. Have a look at the following functions:

    (I'm only available at the email address provided in my profile on weekdays, if you have questions or advice, during off hours use AIM). Also any views I provide here or on my website are mine and not representative of any views of my work, family, friends and sometimes even myself.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts