Posted By

gyurisc on 11/10/10


Tagged

Net c#


Versions (?)

Split with regular expression, string extension method


 / Published in: C#
 

This is an extension method for splitting strings with a regular expression.

  1. public static class StringExtensions
  2. {
  3. public static string[] Split(this String str, System.Text.RegularExpressions.Regex separator)
  4. {
  5. return separator.Split(str);
  6. }
  7. }

Report this snippet  

You need to login to post a comment.