• |
The caret ‘^’ reverses the meaning of a regular expression element. For example, [^KLM] matches a single character that is not K, L, or M. |
• |
A backslash ‘\’ followed by a lowercase ‘d’, \d, means a digit. |
• |
A backslash ‘\’ followed by a lowercase ‘w’, \w, means a word character (an alphanumeric character or an underscore ‘_’). It has the same meaning as [a-zA-Z_0-9]. |
• |
A backslash ‘\’ followed by a lowercase ‘s’, \s, means a white space character. It has the same meaning as [\t\n\x0b\r\f]. |
• |
Two backslashes “\\” followed by a period ‘.’, \\., means a literal dot. |
• |
The flag (?i) makes the regular expression case insensitive. In Foglight for Infrastructure, the Add OS Monitor wizard uses this flag in the Resource Mapping regular expression. For example: (?i).*host.*. |
• |
The flag (?x) allows you to add comments to explain a complex or unusual pattern. The comment starts with a number sign ‘#’. For example: (?x)[KLM]:.* # We dislike drives K through M. |
• |
• |
• |
For more information and more advanced examples, you can refer to the following topics:
• |
“Appendix: Regular Expressions” in the Installing the Java EE Technologies Management Capabilities guide |
• |
“Appendix: Java Regular Expressions in FxV Hit Analysis” in the Foglight Experience Viewer User Guide |
© 2024 Quest Software Inc. ALL RIGHTS RESERVED. Conditions d’utilisation Confidentialité Cookie Preference Center