Title: Re: Witango-Talk: Auto a href
You’d use the <@replace>, using the captured string like this
If your whole string is @@request$string
If you put the <@regex> into a variable, it would be an array, say it’s called @@request$my_stuff
<@ASSIGN request$my_stuff valu
Title: RE: Witango-Talk: Auto a href
Sounds like a good step to take ;-)
Ben Johansen - http://www.pcforge.com
Authorized Witango & MDaemon Reseller
Available for Web App. Developement
From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, February 18, 2005
1
Title: Re: Witango-Talk: Auto a href
Ok
http://www.pcforge.com/regex_href.taf
Ben Johansen - http://www.pcforge.com
Authorized Witango & MDaemon Reseller
Available for Web App. Developement
From: Roland Dumas
[mailto:[EMAIL PROTECTED]
Sent: Friday, February 18,
Title: Re: Witango-Talk: Auto a href
Can someone post this on a public windows box?
On 2/18/05 10:24 AM, "Ben Johansen" <[EMAIL PROTECTED]> wrote:
Ok test this taf out
TO UNSUBSCRIBE: Go to http:/
Title: RE: Witango-Talk: Auto a href
Okay, I got that to work. I understand that it is finding the
string, showing the number of characters before the string and the
length of the string, correct? What would be next to append the and
?
Ok test this taf out
Ben Johansen - http
Title: Re: Witango-Talk: Auto a href
Mac witango 5.065:
http://ridge3.imagineworks.com/dev/regex_href.taf
On 2/18/05 10:24 AM, "Ben Johansen" <[EMAIL PROTECTED]> wrote:
Ok test this taf out
TO
Title: RE: Witango-Talk: Auto a href
Ok test this taf out
Ben Johansen - http://www.pcforge.com
Authorized Witango & MDaemon Reseller
Available for Web App. Developement
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Friday, February 18, 2005
10:34 AM
To: wit
Title: RE: Witango-Talk: Auto a href
Tried this...
<@assign str "<@arg text>"
SCOPE="user">
<@assign expr "https?://[^ ]+\.[a-zA-Z]{2,4}"
SCOPE="user">
<@regex str="@@str" expr="expr"
type="e">
Still
Title: Re: Witango-Talk: Auto a href
Ok try this
[ ]https?://[^ ]+\.[a-zA-Z]{2,4}[ ]
This says
starts with [space]http
has 1 to many non spaces chars
ends with . and 2 to 4 chars
with space after that
Ben Johansen - http://www.pcforge.com
Authorized Witango
Title: Re: Witango-Talk: Auto a href
Ok,
To use the ? (optional) operator you need
to have the optional value
Try
https?://[^ ]*
notice the “s?” this says that
the s is optional
a good test site is
http://www.quanetic.com/regex.php
Ben Johansen - http://www.pcforge.com
Title: Re: Witango-Talk: Auto a href
Okay, I am not a regex expert by any means, but I am trying to do
something like this,
<@assign str "<@arg text>"
SCOPE="user">
<@assign expr "http?://[^ ]*"
SCOPE="user">
<@regex str="@@str&q
Ok, I'm regex-ignorant and not willing to substitute the manual for my
traditional single malt night cap.
So spell it out. If I want to process a variable request$text_block such
that any http URLs in it turn into hyperlinks, what's the full expression?
On 2/17/05 1:33 AM, "Jonah Simpson" <[EMA
The example "perl" regex code was pretty nasty. However, it did
feature the abililty to find any "internet-related" url that posted as
text.
If you were looking for only ftp or http url's, it should be pretty
easy to process text using the related http or ftp portions of that
regex code.
Of cours
On a more useful note that my previous:
<@assign request$str "visit http://www.google.com/modules/default.taf now">
<@assign request$expr "http?://[^ ]*">
<@regex str="@@request$str" expr="@@request$expr" type="e">
will return
http://www.google.com/modules/default.taf
Since the expression is l
ys [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 16, 2005 11:21 PM
To: witango-talk@witango.com
Subject: Re: Witango-Talk: Auto a href
Which is why I use JavaScript for all of my regular expressions,
it's closer to the perl's regex so most perl regexes work with it,
it's wel
D]>
To:
Sent: Wednesday, 16 February, 2005 23:50
Subject: Re: Witango-Talk: Auto a href
> Witango uses a POSIX regex engine which is standards based while Perl
> has its own standard for Regex and in its latest release does not even
> call them regex any more but just plain old rules
regex codes
Ben Johansen
-Original Message-
From: Jonah Simpson [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 16, 2005 6:32 PM
To: witango-talk@witango.com
Subject: Re: Witango-Talk: Auto a href
Regextastic!
From the story, "The pseudo-BNF is pretty straightforward..."
Y
You got that statement to work???
In my experience Witango doesn't handle all the perl regex codes
Ben Johansen
-Original Message-
From: Jonah Simpson [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 16, 2005 6:32 PM
To: witango-talk@witango.com
Subject: Re: Witango-Talk: A
Regextastic!
>From the story, "The pseudo-BNF is pretty straightforward..."
Yes, the 2+ page context free grammar that this monstrous regex
represents is indeed straightforward.
Bwahahahahahahaha!
Jonah Simpson
On Thu, 17 Feb 2005 10:32:43 +1100, Jason Schulz <[EMAIL PROTECTED]> wrote:
> I
I found the expression below at
http://www.foad.org/~abigail/Perl/url3.regex
You can read the story of it at
http://www.foad.org/~abigail/Perl/url2.html.
I haven't tested it, because I think it's pathological enough to get
posted as is!
J.
Think this came up once before. Worth a look through
Take a look at the Open source mail client Tunderbird... I bet theres
some code in there that does a regex or something to find urls and you
could probably steal the regex.
I could be wrong and Thunderbird doesn't use anything like a regex and
it would be impossible to figure out how that mail
Anyone else tried this?
Archives? Do you have a link?
Think this came up once before. Worth a look through the archives.
The challenge is to find the string that represents an URL, which begins
with http:// and ends with the first space after that.
Tricky.
On 2/15/05 9:04 AM, "[EMAIL PROTECTED]"
<[
Think this came up once before. Worth a look through the archives.
The challenge is to find the string that represents an URL, which begins
with http:// and ends with the first space after that.
Tricky.
On 2/15/05 9:04 AM, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> I got one that is bugg
I got one that is bugging me to no end...
WiTango 2000
I have a forum I built. I have noticed on other forums that if you
type in a URL like so...
http://test.com
It automatically creates the link for you in the text that is returned.
I was wondering if anyone has tried this in Witango. I have be
24 matches
Mail list logo