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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T16:29:35+00:00 2026-05-22T16:29:35+00:00

I am using RegEx Helper website (http://regexpal.com/), and ENTER.+Security is matching the following: ENTER

  • 0

I am using RegEx Helper website (http://regexpal.com/), and

ENTER.+Security

is matching the following:

ENTER Open-Source Intelligence Team LSU Center for Animal Health, Food Safety, and Bio-Security

However, PHP will not preg_match it, and I cannot figure it out, I have been trying for a couple of hours now, and I feel really stupid that I can’t get this little piece to match.

Is it apparent to anybody why? I have tried all kinds of combinations but, the most I can get it to match it ENTER. This is especially frustrating because this is my shortest and simplest RegEx by far, but it just will not match.

Code:

$title = '/(ENTER.+Security)/';


$file = shell_exec('pdf2txt.py docs/April.pdf');
preg_match_all($title, $file, $m);

print_r($m[0]);

When I remove the preg_match part, and I just print the $file, there are dozens of visual matches, but it just won’t match it programatically.

All I see is this:

Array ( ) 

But the text it should be matching is here:

…
/March/17031101.asp (accessed April 4, 2011). World Health Organization. State Food
and Drug Administration Gets WHO Approval for Vaccine Regulatory System. March 1,
2011. http://www.wpro.who.int/china/media_centre/press_releases/PR_20110301.htm
(accessed April 4, 2011). ENTER Open-Source Intelligence Team LSU Center for Animal
Health, Food Safety, and Bio-Security
Special Interest Intelligence Report – Alert
South Korea – Labeling Issues in Wheat Flour Mix Product…

  • 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-22T16:29:36+00:00Added an answer on May 22, 2026 at 4:29 pm

    Try accounting for multiple lines. There’s a good chance when you are pasting it into that site that it’s removing any line breaks.

    preg_match('/ENTER.+Security/m',$str) //note the /m
    

    The forward slash in the example is the delimeter. The following m tells it to match over multiple lines.

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

Sidebar

Related Questions

How to do the following using Regex String Str=11111111; if(Str.Contains(0)) MessageBox.Show(Not matching); else MessageBox.Show(Matching);
I need to check using regex that a string matches this format: http://site.com/users/1 e.g.
I have to validate using regex decimal number between 00.00 to 35.35 with following
I have the following in a helper extension : return Regex.Replace(str, (?<=[a-z])(?<x>[A-Z])|(?<=.)(?<x>[A-Z])(?=[a-z])|(?<=[^0-9])(?<x>[0-9])(?=.), $1); Which
All, I'm using the following jQuery plugin: https://github.com/blueimp/jQuery-File-Upload You can see that in the
Need help using regex and powershell to accomplish the following. I have the following
I want to parse the following statement using regex: (o) Multi line text (o)
i'm using regex to get some information from a website, i have this code:
While using regex to help solve a problem in the Python Challenge , I
How do you retrieve selected text using Regex in C#? I am looking for

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.