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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T09:53:57+00:00 2026-06-05T09:53:57+00:00

Vim replace is very hardy to use when I haven’t came across problems like

  • 0

Vim replace is very hardy to use when I haven’t came across problems like this:

1) replace numbers with other text

2) replace text like /static/ to www.website.com/

I assume I need to use some regex to tackle the first problem and some way to get around the / mark for the second.

Any quick solutions ?

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-06-05T09:53:58+00:00Added an answer on June 5, 2026 at 9:53 am
    1. :%s/\d\+/sometext/g
    2. :%s/\/static\//www.website.com\//g
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I like to use VIM to quickly generate snip of codes from text. Now
When I do: /.html Vim looks for html I would like to replace all
To find and replace all instances of a word in vim, I use %s/word/newword/g
I have some very useful plugins to find and replace text through files (see
Using Vim, I'd like to be able to replace preVARIABLETEXTpost with VARIABLETEXT in a
Vim's find and replace is very powerful and very useful however sometimes I don't
Possible Duplicate: vim: search replace over all writable buffers I can use :%s/foo/blah/g to
In VIM I've got 4 windows opened and a NERD tree like this: So,
Sometimes I want to search and replace in Vim using the s/search_for/replace_with/options format, but
There's a command in VIM where you can say how many chars to replace,

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.