Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

Mini Parser

By: Shadowhand on Feb 27th, 2013  |  syntax: C#  |  size: 0.31 KB  |  hits: 161  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. string[] Parse(string toBeParsed, string Condition) {return toBeParsed.Split(new string[] {Condition},StringSplitOptions.RemoveEmptyEntries);}
  2.  
  3. /*
  4. Tiniest readable parser code. Parses the given string with the given condition and puts them in an array.
  5. Usage:
  6. string[] Parsed = Parse(textToBeParsed, Condition);
  7. */