Js regex allow optional line break and space indentation
Some relative posts: Find whitespace in end of string using wildcards or regex Match linebreaks – \n or \r\n? let s = ` %nav.cf %ul.cf %li %a{ :href => "#" } Item 1 %li %a{href => "#"} Item 2 %li %a{:href => "#"} Item 2 %li %a{:href => "#"} Item 3 %a{:href => "#", :id… Read More Js regex allow optional line break and space indentation