Programming Languages Hacks

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

  • Subscribe

  • Lettori

    I miei lettori abituali

  • Twitter

Split using delimiter except when delimiter is escaped

Posted by Ricibald on September 11th, 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.

Leave a Reply

You must be logged in to post a comment.