Last active
December 26, 2015 23:49
-
-
Save jacqinthebox/7233721 to your computer and use it in GitHub Desktop.
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
| static void Main(string[] args) { | |
| var text = File.ReadAllLines(@"C:\Users\jpor01\dev\grh.txt"); | |
| var file = new StreamWriter(@"C:\Users\jpor01\dev\grh-out.txt", true); | |
| foreach (string line in text) | |
| { | |
| var pattern = Regex.IsMatch(line, @"\b(0x00000005)\b", RegexOptions.IgnoreCase ); | |
| if (pattern == true) | |
| { | |
| file.WriteLine(line); | |
| } | |
| } | |
| // Keep the console window open in debug mode. | |
| Console.WriteLine("Press any key to exit."); | |
| file.Close(); | |
| System.Console.ReadKey(); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment