Re: Pattern matches whole string only
"Shigio YAMAGUCHI" <[email protected]>
| Newsgroups | gmane.comp.gnu.global.general |
|---|---|
| Message-ID | <[email protected]> |
Hi, > When I search for a symbol using a regexp, the return values are the one > matching the WHOLE pattern, ie. "abc" won't match "XabcY", I have to sear= > ch for > ".*abc.*" > > Is there any way to have the pattern also matching substrings? You can use '.*abc' or 'abc.*' to do it. 'abc' means '^abc$'. -- Shigio YAMAGUCHI <[email protected]> - Tama Communications Corporation PGP fingerprint: D1CB 0B89 B346 4AB6 5663 C4B6 3CA5 BBB3 57BE DDA3