Skip to content

Instantly share code, notes, and snippets.

View ussjoin's full-sized avatar

Brendan O'Connor ussjoin

View GitHub Profile
import java.util.regex.*;
public class Test
{
public static void main(String[] args)
{
String haystack = "<script>Bad</SCRIPT>Good";
String stripHTMLPattern = "<script>.+?</script>";
import java.util.regex.*;
public class Test
{
public static void main(String[] args)
{
String haystack = "<html><head><title>The Title</title></head><body>Some words are here</body></html>";
String stripHTMLPattern = "<[^>]*>";
Pattern pattern = Pattern.compile(stripHTMLPattern);
--- Steam.pm 2009-06-26 19:58:32.000000000 -0400
+++ NewSteam.pm 2009-07-08 18:55:12.000000000 -0400
@@ -40,7 +40,9 @@
my $achv_scraper = scraper {
process q{div#BG_top h2},
'title' => 'TEXT';
- process q{//div[@class='achievementClosed']},
+ process q{html},
+ 'html' => 'HTML';
+ process q{//div[@class='achieveTxtHolder']},