In my understanding, when Matz invented Ruby, he pretty much lifted a lot of Perl language constructs and duplicated them. Does this extend to regular expressions as well, or are there any syntactical differences that I should be aware of?
There's an extensive comparison of regex support in many languages at https://www.regular-expressions.info/refbasic.html and its sibling pages. Enter the two languages that you want to compare w.r.t. support of regex capabilities, and see the differences in the table.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With