swTools
Class Regex

java.lang.Object
  |
  +--swTools.Regex

public class Regex
extends java.lang.Object

Author:
Zeno Gantner

Constructor Summary
Regex()
           
 
Method Summary
static java.lang.String escape(java.lang.String s)
          Escape regular expression meta-characters in a String
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Regex

public Regex()
Method Detail

escape

public static java.lang.String escape(java.lang.String s)
Escape regular expression meta-characters in a String

Parameters:
s - a String
Returns:
the String, with all meta-characters escaped by "\"