There is some lines:
API: GetProcAddress="FindWindowW"
API: GetProcAddress="PostMessageW"
API: GetProcAddress="GetProcessWindowStation"
API: GetProcAddress="EnumDesktopsW"
API: GetProcAddress="EnumWindows"
API: GetProcAddress="GetThreadDesktop"
API: GetProcAddress="SetThreadDesktop"
API: GetProcAddress="CloseDesktop"
API: GetProcAddress="EnumDesktopWindows"
In Akelpad 4.8.6, when I search "api.+Enum.+$" with Regular Expression checked, multiple lines be selected. If remove the last '$', all lines will be found. I don't want period(.) match '\n', but I haven't found such a option.
[Solved] Is there a option, make period(.) do not match \n ?
- Author
- Message
-
Offline
- Posts: 9
- Joined: Sat Apr 14, 2012 3:50 pm
[Solved] Is there a option, make period(.) do not match \n ?
Last edited by topsuccess on Sun Feb 09, 2014 1:10 pm, edited 1 time in total.
-
Offline
- Posts: 582
- Joined: Mon Apr 08, 2013 9:50 pm
- Location: Win7SP1x64, APx64
Code: Select all
api[^\n]+?Enum[^\n]+?$
[^\n] matches everything except \n
-
Offline
- Posts: 9
- Joined: Sat Apr 14, 2012 3:50 pm
And I saw the following in the manual:
It's why first '?' is needed. Now I know it all. Thanks.
Code: Select all
To make it non-greedy (old behaviour) use "?" after quantifier, like, "\d*?".