I have a string. It looks like 'just a test'.
Saw a solution posted before.
I get 'jus-t a sam-ple' after I run this code.
. These tags are converted to HTML tags later.
I need to skip
when I count number of characters in a word. The output should be
. Both variants are ok.
It should have a pretty easy solution using regex. But I don't know how to do it.