Regular Expression Syntax in MOM 2005
An interesting bit of MOM trivia...let me know if you've experienced similar results. As you may be aware, regular expressions offer many syntax options to accomplish the same net result. However, MOM doesn't seem to process expressions equally when interpreting whitespace (a single character whitespace in this case). For example, the two expressions below translate in roughly the same way through Regular Expressions Workbench: ^(The\sADM|The\sTSM|ServeR) NOTE: The \s translates as Any whitespace character ^(The[ ]ADM|The[ ]TSM|ServeR) NOTE: The [ ] translates as Any character in " " However, only the 2nd equation successfully filtered on the description field to exclude certain services from processing on an a Service Start/Stopped Event. Also, we posted updated to momresources.org last night, including a couple of new scripts, how-to's, FAQs. We've taken to noting the "last update date" by the section links in Downloads to make it a bit easier to find updated content. You can also find a download link for Regular Expressions Workbench at http://momresources.org/downloads/ Labels: Extending MOM, Scripts |










Comments on "Regular Expression Syntax in MOM 2005"
post a comment links to this post