[Adium-devl] Where do URLs in messages get formatted?

Chris Forsythe chris at growl.info
Wed Oct 3 20:39:52 UTC 2007


There's no regex out there that already handles this, or something similar?

Chris

Stephen Holt wrote:

> Just looking at the valid addresses from 
> ftp://ftp.isi.edu/in-notes/rfc2732.txt, the valid formats for an IPv6 
> address can be any of the following:
>
> FEDC:BA98:7654:3210:FEDC:BA98:7654:3210
> 1080:0:0:0:8:800:200C:4171
> 3ffe:2a00:100:7031::1
> 1080::8:800:200C:417A
> ::192.9.5.5 <http://192.9.5.5>
> ::FFFF:129.144.52.38 <http://129.144.52.38>
> 2010:836B:4179::836B:4179
>
> A quick and dirty pattern for an IPv6 literal might look like this:
>
> ([a-zA-Z0-9]{0,4}:){2,7}[a-zA-Z0-9]{0,4}(([0-9]{1,3}\.){3}[0-9]{1,3})?
>
> though, given that, we might want to restructure the pattern matching 
> macros to "simplify" them a little.
>
> I'm swamped at work this week, but I have a long weekend coming up.  
> I'd be willing to hack on this and look at that other hyperlink ticket.
>
> --Steve Holt
>
> On 10/3/07, *Zachary West* <zacwest at gmail.com 
> <mailto:zacwest at gmail.com>> wrote:
>
>     On 10/3/07, *Chris Stewart* <cstewart913 at gmail.com
>     <mailto:cstewart913 at gmail.com>> wrote:
>
>         With respect to #7491 (http://trac.adiumx.com/ticket/7491),
>         I'm trying to find where URLs, IPs, etc, are formatted as a
>         hyperlink before being sent to a contact. 
>
>
>     URLs are parsed using Lex. You can find the grammar, as well as
>     the objective-c source, at in Frameworks/AIHyperlinks.Framework.
>
>     Zac 
>
>      
>
>     _______________________________________________
>     Adium-devl mailing list
>     Adium-devl at adiumx.com <mailto:Adium-devl at adiumx.com>
>     http://adiumx.com/mailman/listinfo/adium-devl_adiumx.com
>
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Adium-devl mailing list
>Adium-devl at adiumx.com
>http://adiumx.com/mailman/listinfo/adium-devl_adiumx.com
>  
>





More information about the devel mailing list