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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T18:39:41+00:00 2026-05-28T18:39:41+00:00

Regex: \b< low= number= low=>\b Example string: <b22>Aquí se muestran algunos síntomas < low=

  • 0

Regex:

\b< low="" number="" low="">\b

Example string:

 <b22>Aquí se muestran algunos síntomas < low="" number="" low=""> tienen el siguiente aspecto.</b22> 

I’m not sure why the word boundary between síntomas and < is not being found. Same problem exists on the other side between > and tienen

Suggestions on how I might more properly match this boundary?

When I give it the following input, the Regex matches as expected:

Aquí se muestran algunos síntomas< low="" number="" low="">tienen el siguiente aspecto.

removing the edge conditions \b \bPHRASE\b are not an option because it cannot match parts of words

Update

This did the trick: (Thanks to Igor, Mosty, DK and NickC)

Regex(String.Format(@"(?<=[\s\.\?\!]){0}(?=[\s\.\?\!])", innerStringToMatch);

I needed to improve my boundary matching to [\s\.\?\!] and make these edge matches positive lookahead and lookbehind.

  • 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-28T18:39:42+00:00Added an answer on May 28, 2026 at 6:39 pm

    \b is a zero-length match which can occur between two characters in the string, where one is a word character and the other is not a word character. Word character is defined as [A-Za-z0-9_]*. < is not a word character, that’s why \b doesn’t match.

    You can try the following regex instead ((?: ) is a non-capturing parentheses group):

    (?:\b|\s+)< low="" number="" low="">(?:\b|\s+)
    

    *) Actually, this is not correct for all regex engines. To be precise, \b matches between \w and \W, where \w matches any word character. As Tim Pietzcker pointed out in the comment to this answer, the meaning of “word character” differs between implementations, but I don’t know any where \w matches < or >.

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

Sidebar

Related Questions

Regex Expression for finding a string which has one @ and should not start
In regex how would you match the number in the following string: first_occurrence_85 Would:
What regex pattern would need I to pass to java.lang.String.split() to split a String
Simple regex question. I have a string on the following format: this is a
RegEx has always confused me. I have a string like this: IDE\DiskDJ205GA20_____________________________A3VS____\5&1003ca0&0&0.0.0 Or Sometimes
Regex rx = new Regex(@[+-]); string[] substrings = rx.Split(expression); expression = -9a3dcbh-3bca-4ab4cf-3hc //This is
Regex to remove everything outside the { } for example: before: |loader|1|2|3|4|5|6|7|8|9|{data : some
Regex rx = new Regex(@(?<!\\\\),); String test = OU=James\\, Brown,OU=Test,DC=Internal,DC=Net; This works perfectly, but
Regex dialect: Java The problem: given a string, replace all occurrences of a substring
Regex Pattern - ([^=](\\s*[\\w-.]*)*$) Test String - paginationInput.entriesPerPage=5 Java Regex Engine Crashing / Taking

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.