In a program that I am writing, I have extracted a token from some
buffer and held it in a variable. I would like to search this
token/variable using regular expressions. How would I do this? I am
asking this because it seems to me that regular expression search can
only be performed in a buffer and cannot be performed on a variable?
Am I making sense? If I am, I'd appreciate your assistance.
Thanks,
Neel
In article <···························@posting.google.com>,
Neel <··········@hotmail.com> wrote:
>In a program that I am writing, I have extracted a token from some
>buffer and held it in a variable. I would like to search this
>token/variable using regular expressions. How would I do this? I am
>asking this because it seems to me that regular expression search can
>only be performed in a buffer and cannot be performed on a variable?
>Am I making sense? If I am, I'd appreciate your assistance.
(string-match REGEXP STRING &optional START)
--
Barry Margolin, ······@genuity.net
Genuity, Woburn, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.