Black Bytes | RSS Feed http://www.blackbytes.info Ruby Programming Tutorials Mon, 17 Oct 2016 01:59:51 +0000 en-US hourly 1 http://wordpress.org/?v=4.3.6 Mastering Ruby Regular Expressions http://www.blackbytes.info/2015/06/ruby-regex/ http://www.blackbytes.info/2015/06/ruby-regex/#comments Mon, 22 Jun 2015 15:06:04 +0000 http://www.blackbytes.info/?p=1925 Ruby regular expressions (regex for short) let us find specific patterns inside strings, with the intent of extracting that data for further processing. Two common use cases for regular expressions are validation and parsing. For example, think about an email address, with regular expressions we can define what a valid email address looks like. That […]

The post Mastering Ruby Regular Expressions appeared first on Black Bytes. Don't miss your free gift here :)

]]>
http://www.blackbytes.info/2015/06/ruby-regex/feed/ 4
Java: Regular Expressions http://www.blackbytes.info/2012/08/java-regular-expressions/ http://www.blackbytes.info/2012/08/java-regular-expressions/#comments Sat, 11 Aug 2012 17:01:07 +0000 http://blackbytes.wordpress.com/?p=398 Regular expressions, regexp for short, allow us to build expressions for pattern matching. If you aren’t familiar with them you may want to check out some resources here. In Java you can leverage the power of regexp using the pattern and matcher classes, you can import java.util.regex.* to make them available to your program. Let’s […]

The post Java: Regular Expressions appeared first on Black Bytes. Don't miss your free gift here :)

]]>
http://www.blackbytes.info/2012/08/java-regular-expressions/feed/ 0
Alphanumeric sorting http://www.blackbytes.info/2012/04/alphanumeric-sorting/ http://www.blackbytes.info/2012/04/alphanumeric-sorting/#comments Fri, 20 Apr 2012 18:23:47 +0000 http://blackbytes.wordpress.com/?p=295 Time for a bit more sorting. Today our task is to sort an array of file names based on the numeric value. This what the array looks like: [crayon-5805ed15684e2252731427/] If you try a simple sort it won’t come out as you expect… [crayon-5805ed15684f0374147721/] Ruby sort by value This is not what we want, so we […]

The post Alphanumeric sorting appeared first on Black Bytes. Don't miss your free gift here :)

]]>
http://www.blackbytes.info/2012/04/alphanumeric-sorting/feed/ 2