Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
これである文字列がある場合
<f = x1106f='0'>something
<> 内の値は変更できます。正規表現を使用して「何か」を分離し、タグを置き換えるにはどうすればよいですか?
編集:
<(.*?)> Pattern worked
次の正規表現を使用して、「何か」をキャプチャします。
(?<=>)(.*?)(?=<)
「何か」の後に終了タグがあると仮定します。
フィドルへのリンク