Comments on: Mastering Ruby Regular Expressions http://www.blackbytes.info/2015/06/ruby-regex/ Ruby Programming Tutorials Wed, 09 Mar 2016 15:12:33 +0000 hourly 1 http://wordpress.org/?v=4.3.3 By: jaki http://www.blackbytes.info/2015/06/ruby-regex/#comment-382 Mon, 13 Jul 2015 09:17:51 +0000 http://www.blackbytes.info/?p=1925#comment-382 It’s always better to make your regular expression more specific e.g. searching for a word at the start of line and searching for a word in the line can make big performance difference, if majority of traffic is for unmatched input.

]]>
By: Jesus Castello http://www.blackbytes.info/2015/06/ruby-regex/#comment-380 Mon, 29 Jun 2015 18:43:48 +0000 http://www.blackbytes.info/?p=1925#comment-380 Hey, thanks for you comment. I edited it so it should look right now :)

]]>
By: echristopherson http://www.blackbytes.info/2015/06/ruby-regex/#comment-379 Mon, 29 Jun 2015 18:24:23 +0000 http://www.blackbytes.info/?p=1925#comment-379 Bernardo, some characters got stripped out in your comment, and the quotes got changed to curly quotes. It should be

]]>
By: Bernardo http://www.blackbytes.info/2015/06/ruby-regex/#comment-375 Mon, 22 Jun 2015 17:23:27 +0000 http://www.blackbytes.info/?p=1925#comment-375 Hi, nice post! It’s worth pointing out, I think, that you can also get named capture groups with the =~ notation:

As far as I know it only works this way around, and not this way:

]]>