Gnijuohz
Gnijuohz

Reputation: 3364

Vim replace with '/' and numbers

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!

Upvotes: 0

Views: 368

Answers (1)

xdazz
xdazz

Reputation: 160833

  1. :%s/\d\+/sometext/g
  2. :%s/\/static\//www.website.com\//g

Upvotes: 5

Related Questions