I'm writing this simple substitution method and I have a <textarea>
providing me with the input text. I have some multiline text:
This is
a *test*
ok?
Which I pass through to my async method in the variable @text.
In the method, my regular expression and gsub matches anything between
asterisks, and put it in brackets:
@text.gsub!(/\*(.*?)\*/m, '<\1>')
And this yields:
This is a <test> ok?
How can I get my regexp to stop eating the newlines? As you can see, I
have the multiline flag on. Am I missing something within the actual
regexp? Help would be greatly appreciated. Thanks!
dear sender,
i�m out of the office until may 29th.
your email will not be forwarded.
for urgent stuff please contact joern@fork.de
kind regards,
alexander