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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T22:04:25+00:00 2026-05-28T22:04:25+00:00

At my company we recently noticed that one developer was not using language files

  • 0

At my company we recently noticed that one developer was not using language files but putting text directly in the code.

My idea was to search for words between quotes that have atleast 1 or more whitespace in them. But I got kinda stuck with

("|')(\w|\s{1,})*('|")

this does match text but does not require that it has atleast 1 word and atleast 1 whitespace (so it matches about anything between quotes). Can anyone help me out?

The language I want to use for this is PHP (or I could do a notepad++ search)

  • 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-28T22:04:26+00:00Added an answer on May 28, 2026 at 10:04 pm

    If you want to match single or double quoted strings (without escapes) that contain a “word” and a space you could use:

    "(?=[^"\n]*\w)(?=[^"\n]*\s)[^"\n]+"|'(?=[^'\n]*\w)(?=[^'\n]*\s)[^'\n]+'
    

    In PHP it would look like:

    preg_match_all("/\"(?=[^\"\n]*\\w)(?=[^\"\n]*\\s)[^\"\n]+\"|'(?=[^'\n]*\\w)(?=[^'\n]*\\s)[^'\n]+'/", $string, $matches);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I recently approached by a company that does not require internet at all but
In our company, just until recently, we were not using namespaces because some compilers
I have recently noticed that nobody uses views in my company (and it's a
I recently joined a company where they use TDD, but it's still not clear
A developer buddy of mine just recently started at a new company and one
I've been working a lot with C# recently, and I've noticed that most code
I have recently joined a company that using typed datasets as their 'Dto'. I
My company recently purchased TFS and I have started looking into the code analysis
My company has recently started using Scrum; we've done 2 sprints. We're still learning,
I have an international company that has recently been added, which is named BLA

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.