I spent some time fixing some bugs in my facebook comments wordpress plugin. It uses a lot of regular expressions to scrape data from facebook. Regular expressions can be a real pain to get working, but I recently found this website that helps you test them in PHP:
This is also useful:
Regular expression cheat sheet