On Nov 24, 2014, at 01:13, Vlad Ghitulescu <[email protected]> wrote: > Sorry, my fault: I forgot to tell that the „Chapter 1“ / „Chapter 2“ titles > are almost similar to the tutorial-titles! They look like this: > > 1.0 Introduction - 8 lessons - 15m 23s > 1.1 title_of_tutorial_1.1 - 2m 3s
______________________________________________________________________ Hey Vlad, That's not too hard to work with. Assumes all chapters start with n…n.0: Find: ^([[:blank:]]*\d+\.[1-9]\d*[\w[:blank:][:punct:]]+\d+m[[:blank:]]*\d+s) Replace \1.md4 Assumes only chapters contain the text 'n…n lessons': Find: ^((?i)[[:blank:]]*\d+\.\d+(?>(?!\d+ lessons).)+\d+m[[:blank:]]*\d+s+$) Replace \1.md4 -- Best Regards, Chris -- This is the BBEdit Talk public discussion group. If you have a feature request or would like to report a problem, please email "[email protected]" rather than posting to the group. Follow @bbedit on Twitter: <http://www.twitter.com/bbedit> --- You received this message because you are subscribed to the Google Groups "BBEdit Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected].
