nvim-pack / nvim-spectre

Find the enemy and replace them with dark power.
MIT License
1.91k stars 67 forks source link

search stern word by regex #240

Open bemulima opened 3 weeks ago

bemulima commented 3 weeks ago

For first thank so march for this awesome tool! You make life easy!

In my case I want to search titleResponse stern word but in result I see all words start of titleResponse. In result:

titleResponse
titleResponses
titleResponsePrint
titleResponseDownload

image

I would like find all words of only titleResponse is this possible?

anchor $ no help image image

windwp commented 2 days ago

$ mean end of line. i use \btitleResponse\b but it only work if you change a replace engine to "oxi".

maybe you can change to search with titleResponse[^\w]