Super User Asked by Just Me on November 3, 2021
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] =>
Search for : =>.*([|]).*=>
Explanation:
.*
- zero or more characters(one|two)
- one or the other[
- the character [
escaped.Screenshot from notepad++:
Answered by harrymc on November 3, 2021
(?<==>)[^=>]*[][][^=>]*(?==>)
Explanation:
(?<==>) # positive lookbehind, make sure we have => before
[^=>]* # 0 or more any character that is not = or >
[][] # character class, matches [ or ]
[^=>]* # 0 or more any character that is not = or >
(?==>) # positive lookahead, make sure we have => after
If you want to catch also =>
, use: =>[^=>]*[][][^=>]*=>
Screenshot (before):
Screenshot (after):
Answered by Toto on November 3, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP