• 日本語
  • 検索と置換の使い方

  • Изменено
Related Discussions
...

こんにちわ、私は以下のような結果を得たい。

しかしながら別の日、同じ環境、この入力でこの結果を得ることができませんでした。

「正規表現」の正しい使い方がわからないです。
例などあれば教えてください。

Hello!

Here are the docs about regular expressions: ツリー - Spine ユーザーガイド: %E6%AD%A3%E8%A6%8F%E8%A1%A8%E7%8F%BE

It may be that you got a different result because the selection didn't have matching characters. It likely happens because $1 may be empty.
$ represent a captured group. To capture a group put it between parenthesis. You can have multiple capturing groups. for example:

Find: some(thing) (nice)
Replace: other $2 $1
Result: other nice thing

You can also find examples by pressing the ? next to the Regular Expression setting.


こんにちは!

これが正規表現についてのドキュメントです:http://ja.esotericsoftware.com/spine-tree#%E6%AD%A3%E8%A6%8F%E8%A1%A8%E7%8F%BE

選択に一致する文字が含まれていないために、結果が異なる場合があります。 $ 1が空の可能性があるため、おそらく発生します。
$はキャプチャされたグループを表します。 グループを捉えるには、括弧で囲みます。 複数のキャプチャグループを設定できます。 例えば:

見つけなさい:some(thing) (nice)
置き換えます: other $2 $1
結果:other nice thing

また、正規表現設定の隣にある を押すことで例を見つけることができます。