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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T13:19:59+00:00 2026-06-02T13:19:59+00:00

I found this at http://www.php.net/manual/en/regexp.reference.subpatterns.php (?|(Sat)ur|(Sun))day this mean (Sat) and Sun will be matched

  • 0

I found this at

http://www.php.net/manual/en/regexp.reference.subpatterns.php

(?|(Sat)ur|(Sun))day

this mean (Sat) and Sun will be matched at same order

but When I test with regexbuddy it occurr a error
abt syntax
Thanks

  • 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-06-02T13:20:02+00:00Added an answer on June 2, 2026 at 1:20 pm

    This should work fine with a recent version of PCRE – did you make sure to switch regexbuddy into PCRE mode?

    You’ll need a pretty recent version too. My PHP 5.2.6 install is too old (PCRE 6.6 2006-02-06), while PHP 5.2.17 (8.02 2010-03-19) is fine.

    This test PHP program:

    $a = "it is Sunday tomorrow";
    preg_match('/(?|(Sat)ur|(Sun))day/', $a, $m);
    print_r($m);
    

    Outputs this:

    Array
    (
        [0] => Sunday
        [1] => Sun
    )
    

    If your version of PCRE is too old, you’ll get this error:

     Compilation failed: unrecognized character after (? at offset 2
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I was looking for info about singleton pattern, I found: http://www.php.net/manual/en/language.oop5.patterns.php#95196 I don't understand:
I found this interesting site, that helps me understand derivatives, http://www.numberempire.com/derivatives.php , It seems
I found this on net in google search and see article here: http://www.thatcssguy.com/limit-your-divs/ See
This is my code: function get_remote_file_to_cache(){ $sites_array = array(http://www.php.net, http://www.engadget.com, http://www.google.se, http://arstechnica.com, http://wired.com); $the_site=
I have seen this question before and found this example in http://www.zeitoun.net/articles/comet_and_php/start which is
I am trying to install this https://www.php.net/manual/en/book.ssh2.php on a Centos 5 (a fork of
Looking around I found http://www.devco.net/archives/2008/06/26/adventures_with_ruby.php where the blogger moan about GServer's bug to destory
I found this code from here: http://www.cssportal.com/form-elements/text-box.htm But the problem is you can still
I found this RGB to HSL script over at http://www.mjijackson.com/2008/02/rgb-to-hsl-and-rgb-to-hsv-color-model-conversion-algorithms-in-javascript . I can't find
What I found so far are some online resources like this: http://www.torsten-horn.de/techdocs/java-hibernate.htm (GER) https://www.hibernate.org/5.html

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.