2,187
edits
(→Examples: Added "VMHBA LUN ID") |
(→Examples: Added "vRanger Backup text in VM Notes") |
||
Line 51: | Line 51: | ||
# <code>$</code> | # <code>$</code> | ||
#* Ensures that the proceeding match occurs at the end of a line | #* Ensures that the proceeding match occurs at the end of a line | ||
=== vRanger Backup text in VM Notes === | |||
'''<code>\s?\bvRanger.*Repository \[.*\]\s?</code>''' | |||
Finds the text created by vRanger in a VM's notes (so you can strip it out)... | |||
* EG <code>vRanger Pro Backup: Type [Full] Result [Success] Time [27/09/2010 06:46:54] Repository [VC_Server]</code> | |||
Stepping through the regex... | |||
# <code>\s?</code> | |||
#* Matches any white-space at the start of the match | |||
# <code>\bvRanger.*</code> | |||
#* Matches <code>vRanger</code> at the start of a word and anything after until... | |||
# <code>Repository \[.*\]</code> | |||
#* Matches the end of a vRanger text segment, <code>Repository [hostname]</code> | |||
# <code>\s?</code> | |||
#* Matches any white-space at the end of the match |