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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T00:11:01+00:00 2026-05-16T00:11:01+00:00

I have a regex expression that traverses a string and pulls out 40 values,

  • 0

I have a regex expression that traverses a string and pulls out 40 values, it looks sort if like the query below, but much larger and more complicated

est(.*)/test>test>(.*)<test><test>(.*)test><test>(.*)/test><test>(.*)/test><test>(.*)/test><test(.*)/test><test>(.*)/test><test>(.*)/test><test>(.*)/test><test>(.*)/test><test>(.*)/test><test>(.*)/test><test>(.*)/test><test>(.*)/test><test>(.*)/test>

My question is how do I use these expressions with the replace command when the number exceeds 9. It seems as if whenever I use \10 it returns the value for \1 and then appends a 0 to the end.

Any help would be much appreciated thanks 🙂

Also I am using UEStudio, but if a different program does it better then no biggie 🙂

  • 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-16T00:11:02+00:00Added an answer on May 16, 2026 at 12:11 am

    Most of the simple Regex engines used by editors aren’t equipped to handle more than 10 matching groups; it doesn’t seem like UltraEdit can. I just tried Notepad++ and it won’t even match a regex with 10 groups.

    Your best bet, I think, is to write something fast in a quick language with a decent regex parser. but that wouldn’t answer the question as asked

    Here’s something in Python:

    import re
    
    pattern = re.compile('(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)')
    with open('input.txt', 'r') as f:
        for line in f:
            m = pattern.match(line)
            print m.groups()
    

    Note that Python allows backreferences such as \20: in order to have a backreference to group 2 followed by a literal 0, you need to use \g<2>0, which is unambiguous.

    Edit:
    Most flavors of regex, and editors which include a regex engine, should follow the replace syntax as follows:

    abcdefghijklmnop
    search: (.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(?<name>.)(.)
    note:    1  2  3  4  5  6  7  8  9  10 11 12 13
    value:   a  b  c  d  e  f  g  h  i  j  k  l  m
    replace result:
        \11      k1      i.e.: match 1, then the character "1"
        ${12}    l       most should support this
        ${name}  l       few support named references, but use them where you can.
    

    Named references are usually only possible in very specific flavor of regex libraries, test your tool to know for sure.

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

Sidebar

Related Questions

I have a regex expression that I'm doing a split against another string and
I have been looking around for a regex expression that will spit out just
i have a simple regex expression below to pull out the value within a
I have these variables: boost::regex re //regular expression to use std::string stringToChange //replace this
Update I want to have an expression (XPath, or Regex Expression, similar) that can
I have a regex expression that I'm using to find all the words in
I have the following regex expression on a dev machine that is running .NET
I would like to find a regular expression (regex) that does detect if you
I have a string of the form: codename123 Is there a regular expression that
I have been thinking about a regular expression that can transform a list like

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.