Cash Talks - BS Walks RSS 2.0
 Wednesday, October 10, 2007

I created a DasBlog Content filter for creating Wikipedia links.  DasBlog Content filters are simple search and replace items.  It does stuff like replace ; -) with  <img alt="; -)" src="smilies/wink.gif">   (I inserted a space after ; so it would not get performed)  It can also do RegEx patterns as used in this example.

I created a derivative of their Google search that searches Wikipedia instead.  The Find Pattern is

\$w\((?<expr>[\w\s\d]+)\)

RegEx patterns. 

<a href="http://en.wikipedia.org/wiki/Special:Search?search=${expr}">${expr}</a>

This allows you to type $ w(Microsoft)  and it will create Microsoft.   (I inserted a space after $ so it would not get performed)

The imbedded HTML is:

<a href=”http://en.wikipedia.org/wiki/Special:Search?search=Microsoft”>Microsoft</a>

Multi Word with spaces works great too.  If you want it to go to a page it must be exact and unique. 

Wednesday, October 10, 2007 1:57:55 PM (Central Daylight Time, UTC-05:00)  #    Comments [0] - Trackback
DasBlog
Archive
<September 2010>
SunMonTueWedThuFriSat
2930311234
567891011
12131415161718
19202122232425
262728293012
3456789
Blogroll
About the author/Disclaimer

Disclaimer
The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

© Copyright 2010
Cash Foley
Sign In
Statistics
Total Posts: 17
This Year: 0
This Month: 0
This Week: 0
Comments: 4
Themes
Pick a theme:
All Content © 2010, Cash Foley
DasBlog theme 'Business' created by Christoph De Baene (delarou)