简体   繁体   中英

How to find sentence with Notepad++ Regular expression

I want to find the sentence that starts with some word and end with some word. For example the sentence that starts with "Hello" and ends with goodbye "Helloxxxxxxxgoodbye"

Use .* to match all characters, so to find something starting with Hello and ending in goodbye would be /Hello.*goodbye/ .

A good website to test regex is https://regex101.com/

Hope this helps.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM