What is the difference between Regex syntax in Ruby and Perl?

In my understanding, when Matz invented Ruby, he pretty much removed many Perl constructs and duplicated them. Does this apply to regular expressions, or are there any syntactic differences that I should be aware of?

+5
source share
1 answer

See this for brief information on how to use regular expressions with Ruby. A very good tool if you want to check differences from Perl or something like http://rubular.com/

+1
source

All Articles