Using Textpad 7.0.9 (32-bit)
I want to find lines that begin with certain string/words. There might be white spaces or tabs before that string but nothing else. Basically if that lines begins with that string, I want to find it. I thought '^' will work, but it didn't
Find lines that begin with certain string/words
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
-
- Posts: 2461
- Joined: Sun Mar 02, 2003 9:22 pm
Search | Find... (<F8>):
^\h*\QYour string containing special characters: ( [ { \ * + } ] )\E
But if Your string contains special characters, such as \, (, ), [, ], {, }, *, +, you'll have to either quote those special characters individually using backslashes or square brackets, or quote the whole string with \Q...\E, like this:Find what: ^\h*Your string
[X] Regular expression
^\h*\QYour string containing special characters: ( [ { \ * + } ] )\E
-
- Posts: 2461
- Joined: Sun Mar 02, 2003 9:22 pm