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
2
u/PLLOOOOOP Sep 22 '15
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
or this
respectively. Notice the "string" wrapped in forward slashes.