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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T07:32:45+00:00 2026-05-28T07:32:45+00:00

A few examples: ilikestackoverflow would match i like stackoverflow thisisanotherexample would match this is

  • 0

A few examples:

  • “ilikestackoverflow” would match “i like stackoverflow”
  • “thisisanotherexample” would match “this is another example”

I realize I could remove the spaces on the right hand to match the left hand, but I would save significant space and processing time by being able to go from left to right.

  • 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-28T07:32:45+00:00Added an answer on May 28, 2026 at 7:32 am

    It would only be quicker to remove the spaces on the right side than having the regex parser (something like a state machine) trying every single combination and backtracing everytime.

    Does A BC match ABC?

    The regexp could be ^A\s?B\s?C$

    1. Do I have an A first? yes go on
    2. Do I have a space? yes go on
    3. Do I have a B? yes go on
    4. Do I have a space? no skip (because of the ? meaning 0 or 1)
    5. Do I have a C? yes go on
    6. Am I at the end of the string? yes where are done here.

    Comparing two strings is much, much lighter and will be faster.

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

Sidebar

Related Questions

I've seen a few examples of RSS Feeds in ASP.NET MVC, like this ,
I've come across a few examples recently that do things like: <dl> <dt>Full Name:</dt>
I'd like to trim these purchase order file names (a few examples below) so
I've seen a few examples of people using this syntax for HTML.BeginForm: (Html.BeginForm<Type>(action =>
I've seen a few examples defining choice fields like so: COUNTRIES = ( ('fr',
I've seen a few examples on here to this problem, but none have solved
Can anyone identify this programming/scripting language off of a few examples of the syntax?
I've seen a few examples of this lately, and am rather curious why it
LD = Levenshtein Distance Just doing a few examples on paper, this seems to
After reading a few examples of tinyMCE, the project is like changing every available

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.