Advertisement
Guest User

Untitled

a guest
Sep 1st, 2015
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. <[^/>]*>
  2.  
  3. private Regex angleReg = new Regex(@"<([^>]+)>s+<([^>]+)>");
  4.  
  5. private string[] parse(string rawInput)
  6. {
  7. Match angleMatch = angleReg.Match(rawInput);
  8.  
  9. if (angleMatch.Success)
  10. {
  11. return new string[] { angleMatch.Groups[1].Value, angleMatch.Groups[2].Value };
  12. }
  13. else
  14. {
  15. return null;
  16. }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement