Programming Languages Hacks

Importanti regole per linguaggi di programmazione rilevanti come Java, C, C++, C#…

  • Subscribe

  • Lettori

    I miei lettori abituali

  • Twitter

Archive for September, 2014

Split using delimiter except when delimiter is escaped

Posted by Ricibald on 11th September 2014

Split using delimiter except when delimiter is escaped

A common problem is to split a string handling escape characters.

This extension method handle the case of split considering the escape.
It uses the negative lookbehind feature of regular expressions.

Posted in .net | 73 Comments »