uk.ac.ebi.intact.util
Class SearchReplace

java.lang.Object
  |
  +--uk.ac.ebi.intact.util.SearchReplace

public final class SearchReplace
extends java.lang.Object

Managment of search replace with regular expression.

Version:
$Id: SearchReplace.java,v 1.1 2003/08/04 10:05:07 skerrien Exp $
Author:
Samuel Kerrien (skerrien@ebi.ac.uk)

Constructor Summary
SearchReplace()
           
 
Method Summary
static java.lang.String replace(java.lang.String text, java.lang.String patternStr, java.lang.String replacement)
          Perform a search replace on a text.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SearchReplace

public SearchReplace()
Method Detail

replace

public static java.lang.String replace(java.lang.String text,
                                       java.lang.String patternStr,
                                       java.lang.String replacement)
Perform a search replace on a text. Takes into account special caracters.

Parameters:
text - the text to work on - must not be null.
patternStr - the string to look for - must not be null.
replacement - the replacement string - must not be null.
Returns:
the modified String


IntAct Project - EMBL-EBI 2004 - intact-help@ebi.ac.uk