Wow thanks! That's is exactly what I need! Thanks!
By the way, from where you knwo the flag (?mis)? I have searched here
http://manual.calibre-ebook.com/regexp.html and here
http://docs.python.org/search.html?q=%28%3Fmis%29 , and even here
https://www.google.com.ua/search?sou...w=1280&bih=656 but haven't found anything. Some kind of hidden flag