jakarta-oro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 21281] New: - not able to susbtitute properly with token as token1 | token2
Date Wed, 02 Jul 2003 16:12:18 GMT
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: oro-dev@jakarta.apache.org
        ReportedBy: smohanty@cisco.com
                CC: smohanty@cisco.com


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 "|"?

---------------------------------------------------------------------
To unsubscribe, e-mail: oro-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: oro-dev-help@jakarta.apache.org


Mime
View raw message