This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.regex.*; | |
public class Test | |
{ | |
public static void main(String[] args) | |
{ | |
String haystack = "<script>Bad</SCRIPT>Good"; | |
String stripHTMLPattern = "<script>.+?</script>"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- 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']}, |
NewerOlder