Author Topic: regex (search) and regex (match)  (Read 15275 times)

docbitter

  • Newbie
  • *
  • Posts: 1
    • View Profile
regex (search) and regex (match)
« on: September 30, 2019, 22:41:58 »
These are new options for the filename search on the Find Files dialog: regex (search) and regex (match).

I cannot think of any difference between "search" and "match". Are these "terms of art" for Regexp experts? The manual has nothing on this.

Please explain or point me at something that explains.

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4491
    • View Profile
    • Multi Commander
Re: regex (search) and regex (match)
« Reply #1 on: October 01, 2019, 08:21:30 »
New? no it's been there for some years

Im not a a big RegEx users so I'm not sure.

But I found this about the difference

regex_match only returns true when the entire input sequence has been matched,
while regex_search will succeed even if only a sub-sequence matches the regex