Try to search regex ^\w in selected line that began with text or symbol, -sublime 4 selecting not working.
In sublime 3 there no such a problem.
Please watch giff
maby there is some config change to make it work again?
Try to search regex ^\w in selected line that began with text or symbol, -sublime 4 selecting not working.
In sublime 3 there no such a problem.
Please watch giff
maby there is some config change to make it work again?
It turns out to be a bug. Regex: Caret not matching beginning of multiline selection
The solution for now its RegReplace plugin its awesome work :
Usage and info
packagecontrol.io
GIT
Jast type in sublime install plugin CMD+shift+P ant whrite RegReplace
Go to RegReplace setting and set:
"selection_only": true
//Set max size you want
"selection_input_max_size": 256,
"selection_input_max_count": 10000,
Then go to: Sublime Text/Packages/User/reg_replace_rules.sublime-settings
//write regex command you want for example to find the line bagan with word:
“find_first_word”: {
“find”: “^\w.*$”,
},
Add a hotkey or menu in:
hotkey for macos: Sublime Text/Packages/User/Default (OSX).sublime-keymap
for menu /Users/z/Library/Application Support/Sublime Text/Packages/User/Main.sublime-menu
{ “caption”: “p”,
“mnemonic”: “Z”,
“id”: “dev”,
“children”: [
{ “caption”: “Find First Word”,
“command”: “reg_replace”,
“args”: {“replacements”: [“find_first_word”],“regex_full_file_with_selections”: true,“action”: “select”}
},
]},
Then select text you like and press hotkey or menu item.
if you have some solution or hack - you are funded, please write to…
and god regex help site [Regular Expressions Tutorial => Basics]
And visualize site: regex101
ssory for my poor English