On Apr 22, 1:25 pm, LuKreme <[email protected]> wrote: > On 22-Apr-2010, at 10:14, Peng Yu wrote: > > > > > I frequently need to search for citations in papers by citation > > numbers. > > > For exmaple, something like [7] [2-8] [2,4,8-10] in the maintext > > represent what articles that are listed in the bibliography are cited. > > Now, I want to search for where it cites citation number 7 in the > > maintext (in this example, it is cited the three places in the > > maintext). > > > But I don't see a very general way to search for such citation. I > > suppect this may not be done by regex for every cases. But I'm not > > sure. Do anybody have a good solution? > > Why can't you search for \[7\] > > Or am I missing something. is 2-8 also valid for 7? If so, I think you are > out of luck for regex.
2-8 is also valid for 7. Is there anything that are more powerful than regex available in vim that can handle this case? -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php Subscription settings: http://groups.google.com/group/vim_use/subscribe?hl=en
