How does PG do autolinking of comments in News Yc i see we dont need a href, python cant use regexes, can you share the lisp ...

1 points by viralvid ↗ HN

3 comments

[ 3.0 ms ] story [ 17.9 ms ] thread
Just guessing, but I think he means that when he types in http://news.ycombinator.com/comments?id=15250, it appears as a hyperlink, even though we don't explicitly add an anchor tag.

The rest of the title is baffling to me: Python can do regexps through the 're' module, there are Lisp regexp packages available, and I'd imagine news.YC uses one of those.

P.S. The hyperlink regexp seems to pick up trailing punctuation, like periods, commas, and parentheses. Any chance we can exclude them from the link target? I think several of my links have broken because of that.

Well i was saying the python re does it well and the pg lisp one seems to pick up any thing that goes behind link so was hoping he ll fix it