I’ll just get on with my ASP3 Twitter reader written in VBScript so that I can leave the past behind me again. The first part is here. VBScript version 5 has simple and good Regex support. Some features are missing, but it’s good. It is available through a class called RegExp, like so: Set R=New RegExp This is the basic concept (to run it, just add these lines and the line above to a vbs-file): ‘What do I want to search for? Use the Pattern property. R.Pattern=”a” ‘Case insensitive. R.IgnoreCase=True ‘Do the replacement and show the result in a message box. MsgBox R.Replace(“String to search”, “(new value)”) ‘Case insensitive. R.IgnoreCase=True ‘Do the replacement and show the result in a message[…]

I had a business case to display a Twitter feed on an ASP3 (VBScript based) page. The code contains a few sticky passages, but all in all it went very well many thanks to the enormous COM toolkit that Microsoft provides. This is how it can be done: <% ‘Create and configure the DOM Document. Set D = Server.CreateObject(“MSXML2.DOMDocument.3.0”) D.async = False D.setProperty “ServerHTTPRequest”, True D.validateOnParse = True D.preserveWhiteSpace = False ‘Download XML data (pointing to the user’s RSS feed). Rss=”http://twitter.com/statuses/user_timeline/33177615.rss” If Not D.Load(Rss) Then ‘Download failed. Response.write “<p>We can not connect to Twitter right now.</p>” Else ‘Downloading went well. Extract the tweets. Set TweetList = D.getElementsByTagName(“item”) ‘Keep track on tweet count – I want to display five of them.[…]