mardi 4 août 2015

Regex to detect end of line(\n) that has double slash(//)

i really need a regex for this Example:

    //This is a comment and I need this \n position
    String notwanted ="//I do not need this end of line position";

Any help is appreciated. Thank you for your time

Aucun commentaire:

Enregistrer un commentaire