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 3841656
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T15:41:00+00:00 2026-05-19T15:41:00+00:00

Warning: preg_match_all() [function.preg-match-all]: Unknown modifier ‘l’ in /var/www/test.php on line 9 It’s saying my

  • 0
Warning: preg_match_all() [function.preg-match-all]: Unknown modifier 'l' in /var/www/test.php on line 9

It’s saying my regex has an unknown modifier, but I’m not sure what exactly is happening to trigger the error

preg_match_all("/\<select id\=\'subscription_division_id\'(.+?)</select>\/is", $html, $matches);
  • 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-19T15:41:00+00:00Added an answer on May 19, 2026 at 3:41 pm

    You are escaping wrong. For the regex parser, the following is your regex:

    \<select id\=\'subscription_division_id\'(.+?)<
    

    whereas select>\/is is supposed to be the regexp modifiers (the regex string is enclosed in /). Given that the l in there is the first invalid modifier, you receive that error. So to fix that, you need to escape the slash in the closing tag. And btw. you are escaping quite a lot unnecessary things, this is enough:

    preg_match_all("/<select id='subscription_division_id'(.+?)<\/select>/is", $html, $matches);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm getting the following error [13-Sep-2011 07:26:28] PHP Warning: preg_match_all() [<a href='function.preg-match-all'>function.preg-match-all</a>]: Unknown modifier
I keep getting this error: Warning: preg_match() [function.preg-match]: Unknown modifier 't' in D:\xampp\htdocs\administrator\components\com_smms\functions\plugin.php on
I am using this: if(!preg_match('/^+[0-9]$/', '+1234567')) and am getting: Warning: preg_match() [function.preg-match]: Compilation failed:
I've got a PHP warning message below Warning: preg_replace() [function.preg-replace]: Compilation failed: POSIX collating
when this function was called it gave the message Warning: preg_match() [function.preg-match]: No ending
Here's the error: For: PHP 5.2+ Warning: strpos() [function.strpos]: Empty delimiter in /helper.php on
Warning: Illegal offset type in /email_HANDLER.php on line 85 $final_message = str_replace($from, $to, $final_message);
I'm getting this odd error in the preg_match() function: Warning: preg_match(): Compilation failed: range
On a phpBB forum, memberlist.php lists all the members of the board with the
Possible Duplicate: Converting ereg expressions to preg <?php $searchtag = "google"; $link = "http://images.google.com/images?hl=de&q=$searchtag&btnG=Bilder-Suche&gbv=1";

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.