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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T10:57:38+00:00 2026-06-17T10:57:38+00:00

Objective I want to match any digit, word character, or space 46 or more

  • 0

Objective

I want to match any digit, word character, or space 46 or more times before a < sign.

One note is that I’m trying to use this RegEx in Notepad++ before plugging it into the C# code.

Data

<Elem1>123 ABC Street</Elem1> // should NOT match
<Elem1>123637 ABC Street Suite 1, Kalamzoo, FL 15264-8574</Elem1>

RegEx

I currently have the following RegEx:

^.*<Elem1>[\d\w\s]{46,}?

and I can’t figure out why this [\d\w\s]{46,}? won’t match the inner portion of the element.

I look forward to your answers!

  • 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-17T10:57:39+00:00Added an answer on June 17, 2026 at 10:57 am

    It doesn’t match because the input contains commas and hyphens, which are not part of any of the three character classes you include.

    This would match:

    ^.*<Elem1>[\d\w\s,-]{46,}?
    

    Additionally, it only makes sense to include the start of input anchor and then go on to say “oh, ignore any characters you find before an <Elem1>” if the regex runs in multiline mode. Otherwise, the same effect can be achieved with just

    <Elem1>[\d\w\s,-]{46,}?
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My objective is to match a pattern that doesn't contain '#' before the pattern,
Objective: I want to create a web service that allows me to connect to
I want to use characterAtIndex in Objective-C to compare the character at a certain
I want to use/reuse C++ object with Objective-C. I have a hello.h that has
I'm using Objective-C Distributed Objects (DO) to share data from one application (that collects
Objective: I want to make a java program containing a boolean that checks every
I want to create an Objective-C base class that performs an operation on all
I want to integrate the Aviary SDK Objective-C library into Monotouch project. I use
I want to know if primary objective is mandatory for activities? Thank you
I want to define a constant in objective-c. Previously I had the following function:

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.