Regex - Lookaheads

^(?!\/boot).*$

Will not match:

  • /boot
  • /boot2
  • /bootrecover

Will match:

  • /fs1
  • /file
  • /disk
  • etc.

^(?!\/boot\b).*$

Will not match:

  • /boot

Will match:

  • /boot2
  • /bootrecover
  • /fs1
  • /file
  • /disk
  • etc.

Previous Post Next Post

Add a comment

Comments

KaHVZURDWlYbzu
Written on Fri, 05 Jan 2024 19:46:34 by TbQEYXjUIh
vcQyBpzxRXCdlK
Written on Fri, 05 Jan 2024 19:46:32 by lNfBPeLaUCqzwdHD
kKidBeALoJMQul
Written on Wed, 13 Dec 2023 07:47:42 by YyniJwHmp
XGCOgtUEf
Written on Wed, 13 Dec 2023 07:47:40 by oReTODhUnMIZu