いくつかのデータがあり、それを表形式に変換したいと思います。
入力データはこちら
1- This is the 1st line with a
newline character
2- This is the 2nd line
各行には、複数の改行文字を含めることができます。
出力
<td>1- This the 1st line with
a new line character</td>
<td>2- This is the 2nd line</td>
私は次のことを試しました
^(\d{1,3}-)[^\d]*
しかし、1stの数字1までしかマッチしないようです。
文字列で別の \d{1,3}\- を見つけたら、マッチングを停止できるようにしたいと思います。助言がありますか?
編集: EditPad Lite を使用しています。