I am trying to get this Ruby code beautifier , working and got into the problem with regular expressions, and, frankly, since my experience with them is extremely limited.
Error received by Im:
warning: character class has duplicated range: /.*=\s*<<-?\s*([_|\w]+).*/
Which points to this line:
here_doc_term = tline.sub(%r{.*=\s*<<-?\s*([_|\w]+).*},"\\1")
Can anyone be kind enough to indicate that the problem is with this expression?
Thanks.
Andrew
source share