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

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to