суббота, 5 сентября 2015 г.

Sublime Text regex detecting multiline tags

If you want to make a multiline search in sublime, for example for the following text:
 [sometag] here is more text  
 it spans more than one line [/sometag]  
 [sometag]this is a bit of text[/sometag]  

Use following regexp pattern:
 (?s)\[sometag\](.*?)\[\/sometag\]  
example

Комментариев нет:

Отправить комментарий