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

  • Home
  • SEARCH
  • 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 8903201
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T01:48:38+00:00 2026-06-15T01:48:38+00:00

A very simple one for someone that knows the answer. I’m working in EditPat

  • 0

A very simple one for someone that knows the answer. I’m working in EditPat Lite, and have a list in the format:

"Origin - Destination 1234.5 miles"

I need to insert a ‘,’ between the destinations and distances, and can identify the place to insert using ( [0-9]+.[0-9]+ miles). But I know not how to insert the comma. Have searched for solutions using various brackets, but nothing works. I need to prevent the strings being replaced by the regular expression.

Grateful for any tips.

  • 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-15T01:48:39+00:00Added an answer on June 15, 2026 at 1:48 am

    You will need a regexp replacement function, which I suppose you have. In it, you can refer to matched expressions (as the other answer says, this is normally done with $0 or \0, or different numbers for sub-matches.

    You can either replace the regexp you have with ,\0 , which means “a comma, followed by the thing that is being replaced”, or you can use a non-consuming match, so you replace the 0-character string just before the regexp with a comma: (?= [0-9]+.[0-9]+ miles) matches this “empty” string.

    This type of match is called “positive lookahead”. It’s also available in negative and lookbehind flavours: (?!...), (?<=...), (?<!...).

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

Sidebar

Related Questions

I'm sure someone will have a very simple answer to this but I can't
I am modifying a wordpress theme completely, and have run into one very simple
I have very simple window where I have 2 buttons - one for cancel,
Supose we have a very simple model: Station has at least one Train Train
I have a very simple scenario, using NHibernate: one abstract base class animal; two
I have a template filter that performs a very simple task and works well,
i had once had a very simple one or two line code that would
Very Simple one, just stumped on syntax and not finding a good example anywhere.
So this one is probably very simple, but I'm having a bit of trouble
I've a very simple class which has one integer variable. I just print the

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.