>
> 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
>> 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
> 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 ;
>
> 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
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
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
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
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 -]
[-
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]
Does embperl have it's own $1, $2, etc. like the ones captured when using parenthesis
in a matching expression? If not, does embperl do something to these
variables produced by the parenthesis (like discard or ignore them)? To illustrate
what I'm talking about here's some embperl code:
[- $tex
10 matches
Mail list logo