7

Notepad++ の検索ボックスでこのようなものを検索する方法を知っている人はいますか?

ID。213

借金: 13 $

これを次のように検索したい:

"ID. (数字/任意の文字を無視),newline, Debt(数字/任意の文字を無視)"

4

2 に答える 2

1

どうですか:

ID\..*?Debt:

有効にすることを忘れないでください. matches newline

説明:

(?^:ID\..*?Debt:)
The regular expression:

(?-imsx:ID\..*?Debt:)

matches as follows:

NODE                     EXPLANATION
----------------------------------------------------------------------
(?-imsx:                 group, but do not capture (case-sensitive)
                         (with ^ and $ matching normally) (with . not
                         matching \n) (matching whitespace and #
                         normally):
----------------------------------------------------------------------
  ID                       'ID'
----------------------------------------------------------------------
  \.                       '.'
----------------------------------------------------------------------
  .*?                      any character including \n (0 or more times
                           (matching the least amount possible))
----------------------------------------------------------------------
  Debt:                    'Debt:'
----------------------------------------------------------------------
)                        end of grouping
----------------------------------------------------------------------
于 2013-06-24T17:59:19.093 に答える