Re: Embperl And Matching

2000-10-22 Thread Gerald Richter
> > Thanks again Gerald. I'll have to experiment with that. I've also since come up > with another solution to accomplish what I wanted to do and it works great: > This is the way I also would prefer to do it. Because it makes sure $word is correctly escaped, which may not the case if escaping is

Re: Embperl And Matching

2000-10-20 Thread Gavin Spomer
>> Whoops. Actually it didn't work for some reason. The output on the browser >(not >> the source) looks like: >> >> This: http://www.blah.com">http://www.blah.com is a url >> > >Embperl by default escapes your output i.e. < will become < You need to >set $escmode to zero, e.g. > > >[+ local $escm

Re: Embperl And Matching

2000-10-20 Thread Gerald Richter
> Whoops. Actually it didn't work for some reason. The output on the browser (not > the source) looks like: > > This: http://www.blah.com">http://www.blah.com is a url > Embperl by default escapes your output i.e. < will become < You need to set $escmode to zero, e.g. [+ local $escmode = 0 ;

Re: Embperl And Matching

2000-10-20 Thread Gerald Richter
> > As I'm looking at the messages in this embperl discussion, I notice that any > urls that are present are hyperlinked. Gerald? (I assume he made this) > If you mean the mailinglist archive on www.ecos.de. This pages are generted by mhonarc and this programm does the conversion to HREFs Gerald

Re: Embperl And Matching

2000-10-19 Thread Gavin Spomer
AIL PROTECTED]> >X-Accept-Language: en >MIME-Version: 1.0 >To: Gavin Spomer <[EMAIL PROTECTED]> >CC: [EMAIL PROTECTED] >Subject: Re: Embperl And Matching >Content-Transfer-Encoding: 7bit > >As I was writing my reply I see ___cliff rayman___ has already responded. &g

Re: Embperl And Matching

2000-10-19 Thread Gavin Spomer
You know, I tried something like this before and it didn't work, but I think maybe I might have set $optRawInput to the wrong value. Thanks for your idea. It makes sense because now I can just add the g to the substitute statement and it will hyperlink all of the urls. > >As I was writing my r

Re: Embperl And Matching

2000-10-19 Thread Gavin Spomer
IDL: 3d18742e5e09c0dd20b0cb3af1edf32d >Date: Wed, 18 Oct 2000 16:47:27 -0700 >From: ___cliff rayman___ <[EMAIL PROTECTED]> >X-Accept-Language: en >MIME-Version: 1.0 >To: Gavin Spomer <[EMAIL PROTECTED]>, [EMAIL PROTECTED] >Subject: Re: Embperl And Matching >Content-Tran

Re: Embperl And Matching

2000-10-18 Thread Aaron Johnson
As I was writing my reply I see ___cliff rayman___ has already responded. I attempted it with his revised code and it still did not work until I add the [- $optRawInput = 1 -] at the top. Another way to do the process (just because that is what is great about Perl) is: [- $optRawInput = 1 -] [-

Re: Embperl And Matching

2000-10-18 Thread ___cliff rayman___
embperl is really not doing anything special, but the [$ $] blocks are not in the same scope as the [+ +] blocks. use a global variable to capture the values so it is available in the other blocks. try: [$ if @regex=($text =~ /(.*\s)(http\:\/\/\S+)(\s.*)/i) $] [+ $regex[0] +][+ $regex[1]