From: Neel
Subject: Regular expressions
Date: 
Message-ID: <923666cb.0208140653.53336e0@posting.google.com>
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
From: Barry Margolin
Subject: Re: Regular expressions
Date: 
Message-ID: <ibu69.2$Ra.4115@paloalto-snr1.gtei.net>
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.