Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
moex
Transmorpher
Commits
bf13c009
Commit
bf13c009
authored
Nov 06, 2002
by
Serge Leblanc
Browse files
consistent reoganisation from v1-0-0
parent
662f8eb8
Changes
1
Hide whitespace changes
Inline
Side-by-side
transmorpher/src/fr/fluxmedia/transmorpher/regexp/RegularExpression.java
deleted
100644 → 0
View file @
662f8eb8
/**
* $Id: RegularExpression.java,v 1.3 2002-10-13 19:20:21 jerome Exp $
*
* Transmorpher
*
* Copyright (C) 2001 Fluxmedia and INRIA Rhône-Alpes.
*
* http://www.fluxmedia.fr - http://transmorpher.inrialpes.fr
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/**
* @authors : Chomat Guillaume
* @date : 30 05 2001
* @content : attempt about regular expression in java
*/
package
fr.fluxmedia.transmorpher.regexp
;
import
java.util.*
;
import
gnu.regexp.RE
;
import
gnu.regexp.REException
;
public
class
RegularExpression
{
public
static
String
substitute
(
String
text
,
String
source
,
String
target
)
throws
REException
{
RE
regularExpression
=
new
RE
(
source
);
return
regularExpression
.
substitute
(
text
,
target
);
}
public
static
String
substituteAll
(
String
text
,
String
source
,
String
target
)
throws
REException
{
RE
regularExpression
=
new
RE
(
source
);
return
regularExpression
.
substituteAll
(
text
,
target
);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment