WebSphere Message Broker, Version 8.0.0.7 Operating Systems: AIX, HP-Itanium, Linux, Solaris, Windows, z/OS

See information about the latest product version

Message Sets: Performance considerations when using regular expressions

Take care when specifying regular expressions: some forms of regular expression can involve a large amount of work to find the best match, which might degrade performance.

Other expressions might produce a result that you did not expect.

For example, to match text up to and including a delimiter character ';' do not use the pattern ".*;", which matches up to the last ';' character in the message, including all prior ';' characters in the matched text. Instead, use the pattern "[^;]*;".

Similarly, avoid using the pattern ".*", which always forces a search to the end of the message to try and find the best match, and therefore might result in poor performance. However, you must use the pattern ".*" if you intend to match all remaining data in a message.

For best performance, avoid expressions with redundant nested repeats, such as "([0-9]+)*". Keep the expressions simple, with precise matching criteria. Simple expressions avoid the need to perform multiple searches for the best match.

Notices | Trademarks | Downloads | Library | Support | Feedback

Copyright IBM Corporation 1999, 2016Copyright IBM Corporation 1999, 2016.

        
        Last updated:
        
        Last updated: 2016-05-23 14:46:44


Reference topicReference topic | Version 8.0.0.7 | ad09910_