次の行に一致/不一致を返す正規表現を作成できますか?ソースコードの行のコメントなどの境界を検出する正規表現
/*8th*/break; match
break;/*8th*/ match
/*8th*/ no match
/*8th no match
8th*/ no match
// /* some_comment no match
// some_comment no match
some_comment*/ no match
some_comment // match
「はい」の場合は、この正規表現を入力してください。
基本的に私が捕まえようとしているのは、コメントとは別に行に何かがある場合です。
同様の質問:[C#のコメントを文字列から削除](http://stackoverflow.com/questions/8399213/c-sharp-removing-comments-from-a-string) –
これは一致します: '/ * asd/* abcd */qwe ' – Amarghosh
@Amarghoshはい、これは一致と見なされます – smallB