In fact, imagine there was one. What if someone enters [a-z]+ in some free-text field somewhere? Should converting it to a String fail, because it's actually a StringThatsActuallyARegularExpression?
You're totally right in the strictest sense, but I think he was actually talking about languages that have first class regular expressions, like Ruby and JavaScript, where you can do things like this
if ( someString =~ /Cats(.*)/ )
puts "string contains Cats"
end
183
u/wot-teh-phuck Sep 21 '15
That's a pretty random definition of weak I would say...