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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T01:49:52+00:00 2026-06-08T01:49:52+00:00

a* means zero or more of a. In the string ‘abbabba’ we have two

  • 0

a* means zero or more of a.

In the string ‘abbabba’ we have two occurrence of abba. (abba)bba and abb(abba).
preg_match_all matches only first occurrence.

Am i missing any basic of regex fundamental?

$string = 'abbabba';

preg_match_all("/ab*a/", $string, $matches);

print_r($matches);

Array ( [0] => Array ( [0] => abba ) ) 
  • 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-08T01:49:54+00:00Added an answer on June 8, 2026 at 1:49 am

    Searches subject for all matches to the regular expression given in pattern and puts them in matches in the order specified by flags.

    After the first match is found, the subsequent searches are continued on from end of the last match.

    Source

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So * by itself means repeat the previous item zero or more times. The
Can anyone tell me what this message means? AddRunningClient starting device on non-zero client
I have the following regex: (?<=\.\d+?)0+(?=\D|$) I'm running it against a string which contains
I have a datatype that's more or less a character array. Each space in
I have a string. In this string i need replace all special characters (0-31
What would be a good way to trim more than two trailing zeros for
I'm just putting this one out there since its a Google Zero-resulter which means
I have a table with zero rows now but will grow to 4-5 million
As anything non-zero means true, but the > , < , == etc. operators
I want to average some .jpg images which are corrupted by zero-mean Gaussian additive

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.