regex - how to search pattern with numerals in vim -
i want search patterns matching string part numerals.
example have file containing
foo_1 foo_2 foo_3 foo_33 foo_34 foo_35 foo_65 foo_66 foo_67
and on , want search foo_2
, foo_34
, foo_66
/foo_[2|34|66]
this doesn't return me desired search. can here?
try /foo_\(2\|34\|66\)$
.
see section 27.5 in vim details.
Comments
Post a Comment