Regular expression to select multiple lines

Copy the code in some IDEs, and the code is very long, so you need to use regular expressions to quickly select the corresponding module. The method is to add the corresponding symbol to the first selected one, such as ############### ###########
Then the regular selection is ############################[\s\S] ## #####################
That 's
it ### is the tag you added

For example:
in Pycharm, Ctrl+F, select the regular search, it will be fine, as shown below:

insert image description here
This is good, many IEDs have regular search, plus it will be very convenient!

Guess you like

Origin blog.csdn.net/qq_41841073/article/details/127567885
Recommended