For this line of code:
text = totaltext2.reject {|sentence| nilfacs.any?{|fac| sentence =~ /#{fac}/i}}
I’m getting the following errors:
1.) “Character Class has ‘[‘ without escape”
AND
2.) “Premature end of character class” followed by: ‘in “each”‘, ‘in “any?”‘, ‘in “reject”‘, ‘in ‘
Can anyone tell me what I need to change and/or what the problem is? I can’t figure out what the error is.
One of the strings inside ‘fac’ has unescaped regexp chars.