Notepad++ - Select whole line that contains a string with space

What's the correct regex command?

(.*State\sProvince.*) works for me.

enter image description here

Please check the other settings in the "Find" dialog.


Further reading

  • FAQ Desk: Where to find REGEX documentation ? | Notepad++ Community
  • Notepad++: A guide to using regular expressions and extended search mode
  • Regular Expressions Tutorial
  • RegExr: Learn, Build, & Test RegEx
  • regex101: Online regex tester and debugger
  • RegExper: Regular Expression Visualiser

That works just fine for me. You might have an extra space, so try adding an asterisk after the \s, so it reads (.*State\s*Province.*)