DO NOT REPLY [Bug 21281] New: - not able to susbtitute properly with token as token1 | token2
[email protected] 2 Jul 2003 16:12:18 -0000
| Newsgroups | gmane.comp.jakarta.oro.devel |
|---|---|
| Message-ID | <[email protected]> |
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21281>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21281
not able to susbtitute properly with token as token1 | token2
Summary: not able to susbtitute properly with token as token1 |
token2
Product: ORO
Version: Unknown
Platform: Sun
OS/Version: Solaris
Status: NEW
Severity: Major
Priority: Other
Component: Main
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
We have a data containing some tokens and we have to remove that. So I used
com.oroinc.text.regex.Util.substitute method. Its working fine with normal
tokens. But if I give a token as
"abc | xyz" to substitute with empty string "",
its not able to susbtitute from the data. e.g.
token= "abc | xyz"
data= "abc | xyz aaa aaa bbb bbb"
final data comes as "| xyz aaa aaa bbb bbb". I need to remove the second part
"| xyz" too. Am I doing something wrong in operation or need to escape "|"?