Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3282026
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T19:52:53+00:00 2026-05-17T19:52:53+00:00

Im trying to search for something on a page but i keep getting this

  • 0

Im trying to search for something on a page but i keep getting this silly error

this is the error i am getting

Warning: preg_match() [function.preg-match]: Unknown modifier ‘d’

this is the code im using

$qa = file_get_contents($_GET['url']);
preg_match('/<a href="/download.php\?g=(?P<number>.+)">Click here</a>/',$qa,$result);

And $_GET[‘url’] can eqaul many things but in one case it was http://freegamesforyourwebsite.com/game/18-wheeler–2.html

the the html of that url basically

Anyone got a clue :S ? I dont even know where to start cus i dont know what a modifire is and the php.net site is no help

thankyou !

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T19:52:54+00:00Added an answer on May 17, 2026 at 7:52 pm

    You need to escape the ‘/’ before download.php otherwise it thinks you are ending your regex and providing ‘d’ as a modifier for your regex. You will also need to escape the next ‘/’ in the ending anchor tag.

    preg_match('/<a href="\/download.php\?g=(?P<number>.+)">Click here<\/a>/',$qa,$result);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to rewrite search results page url to something like /search/query-1.html but when
I am trying to do something like this: if params[:q] loc = Geocoder.search(params[:q])[0] logger.info
I am trying to work out a php function to search the referring page
While trying to search with id sorting (and paginating) im getting from the log:
I'm trying to achieve something apparently simple but I couldn't find any answer, neither
There's probably a Google search that'll answer this question but for the life of
I'm trying to search Google but the keyword 'go' makes it difficult to find
I am trying to search all image tags on a specific page. An example
I'm trying to customise the mark-up of the default search results page in Drupal
I'm trying to search for all elements in a web page with a certain

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.