Skip to main content
deleted 1 character in body
Source Link
peterh
  • 1.2k
  • 3
  • 16
  • 35

I know it should be easy, but somehow I don’t get it right.
I’ve

I've got a text with artist_id, album_id,... and want to replace them with just id.
How

How do iI do that?
I

I tried :%s/[a-z]+_id/id/gc
But:%s/[a-z]+_id/id/gc, but it didn’tdid not work.

I know it should be easy, but somehow I don’t get it right.
I’ve got a text with artist_id, album_id,... and want to replace them with just id.
How do i do that?
I tried :%s/[a-z]+_id/id/gc
But it didn’t work.

I know it should be easy, but somehow I don’t get it right.

I've got a text with artist_id, album_id,... and want to replace them with just id.

How do I do that?

I tried :%s/[a-z]+_id/id/gc, but it did not work.

Source Link

How to search and replace more than character and a string in vim

I know it should be easy, but somehow I don’t get it right.
I’ve got a text with artist_id, album_id,... and want to replace them with just id.
How do i do that?
I tried :%s/[a-z]+_id/id/gc
But it didn’t work.