- Subject: Re: Put search string into variable for use with strcmp
- From: "John E. Davis" <davis>
- Date: Fri, 6 Dec 2002 18:37:34 -0500
Morten Bo Johansen <mojo@xxxxxxxx> wrote:
>Since re_fsearch returns 1 + the length of the string according
>the the explanation in jedfuns.txt, I suppose I need to do
>something else?
variable len = re_fsearch (pattern);
variable text = "";
if (len)
{
push_spot ();
go_right(len-1);
text = bufsubstr ();
pop_spot ();
}
.
% Use text
.
--John
--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.
[2002 date index]
[2002 thread index]
[Thread Prev] [Thread Next]
[Date Prev] [Date Next]