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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T05:41:33+00:00 2026-05-18T05:41:33+00:00

How do I use RegExp Replace to replace below word? — (1) Replace/Remove what

  • 0

How do I use RegExp Replace to replace below word?

—

(1) Replace/Remove what ever word start with “a” and end with “c”!

Example (1): abc, xyz, axc, bbb, ccc ayc, a1c, abcc, axxyzc...

Replace after (1): , xyz, , bbb, ccc , , , ...

—

(2) Replace/Remove what ever word start with “abc=” and end with “&”!

Example (2): abc=123&xyz=111&abc=xgggf&abc=ffff&abc=xxxx&xyz=kkk&abc=zzz&

Replace after (2): xyz=111&xyz=kkk&

—

Thanks~~~

  • 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-18T05:41:33+00:00Added an answer on May 18, 2026 at 5:41 am

    (1):

    var replaced = string.replace(/a.*?c/gi, "");
    

    (2):

    var replaced = string.replace(/(.*?)xyz=&(.*?)/gi, "$1,$2");
    

    The above is using Javascript. But the general regex’s will be the same in all regex flavors.

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

Sidebar

Related Questions

Javascript: var string = '(37.961523, -79.40918)'; //remove brackets: replace or regex? + remove whitespaces
I would like to use the .replace function to replace multiple strings. I currently
Basically I want to use RegEx to grab stuff in between paragraphs in a
I'd like to use regex with Java. What I want to do is find
I'm just beginning to use Regex so bear with my terminology. I have a
Does anyone know if it's possible to use regex capture within Apache's DirectoryMatch directive?
I'd like to use a Regex parser to aid in some string processing in
Is it possible to use a RegEx to validate, or sanitize Base64 data? That's
Possible Duplicate: Escape string for use in Javascript regex I have a msg like
Does anyone use have a good regex library that they like to use? Most

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.