Windows – Regex: Select text/string between symbols that contains another symbol (tags that contains specific string)

notepadregexwindows 10

I want to select all text between => and => only if contains [ or ]

I love you => predici-video [date] => between myself and her.

so, only this => predici-video [date] =>

Best Answer

Search for : =>.*(\[|\]).*=>

Explanation:

  • .* - zero or more characters
  • (one|two) - one or the other
  • \[ - the character [ escaped.

Screenshot from notepad++:


enter image description here

Related Question