News

In my last blog post , I looked at using a simple Java application to determine which characters would work as desired for splitting a String with String.split .
package dustin.examples; import java.util.regex.PatternSyntaxException; import static java.lang.System.out; /** * This simple class accepts a String as a potential regular expression token * and ...
As a simple but nontrivial example, let's consider a regex for matching phone numbers. It sounds pretty mundane, but such a thing can be extremely useful. Potential applications include finding phone ...
In Java, I was surprised by how close the performance was for standard regular expressions to using string primitives. String primitives took 188 ms to process the 100,000 lines. Standard regular ...