[REBOL] Re: Help required for a little parsing problem
From: al:bri:xtra at: 19-Nov-2000 21:43
Nigel wrote:
> I'll try them later - I'm sure it will save me a big headache....
To save yourself from more headaches, why not drop the "[url]" notation, and
directly generate the HTML link by recognising the http:// url? So your
example becomes:
post: {
This is a post - Perl is good http://www.perl.com,
Rebol is better http://www.rebol.com.
}
result: {
This is a post - Perl is good <a
href="http://www.perl.com">http://www.perl.com</a>,
Rebol is better <a
href="http://www.rebol.com">http://www.rebol.com</a>.
}
Then you could go one step further yet again:
post: {
This is a post - Perl is good: http://www.perl.com,
Rebol is better: http://www.rebol.com.
}
result: {
This is a post - <a href="http://www.perl.com">Perl is good</a>,
<a href="http://www.rebol.com">Rebol is better</a>.
}
Want an asprin? :-)
Andrew Martin
ICQ: 26227169
http://members.nbci.com/AndrewMartin/