HP 6125XLG R2306-HP 6125XLG Blade Switch Fundamentals Configuration Guide - Page 18
Characters, Meaning, Examples, er\B matches verb, but not never or
View all HP 6125XLG manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 18 highlights
Characters \N [ ] [^] {n} {n,} {n,m} \< \> \b \B \w Meaning Examples Matches the preceding strings in parentheses, with the Nth string repeated once. "(string)\1" matches a string containing "stringstring". "(string1)(string2)\2" matches a string containing "string1string2string2". "(string1)(string2)\1\2" matches a string containing " string1string2string1string2". Matches a single character in the brackets. "[16A]" matches a string containing 1, 6, or A; "[1-36A]" matches a string containing 1, 2, 3, 6, or A (- is a hyphen). To match the character "]", put it immediately after "[", for example, []abc]. There is no such limit on "[". Matches a single character that is not in the brackets. "[^16A]" matches a string that contains at least one character other than 1, 6, or A, such as "abc". A match can also contain 1, 6, or A (such as "m16"), but it cannot contain these three characters only (such as 1, 16, or 16A). Matches the preceding character n times. The number n must be a nonnegative integer. "o{2}" matches "food", but not "Bob". Matches the preceding character n times or more. The number n must be "o{2,}" matches "foooood", but not "Bob". a nonnegative integer. Matches the preceding character n to m times or more. The numbers n and m must be nonnegative integers and n cannot be greater than m. "o{1,3}" matches "fod", "food", and "foooood", but not "fd". Matches a string that starts with the pattern following \. A string that contains the pattern is also a match if the characters following the pattern are not digits, letters, or underscores. "do\>" matches "undo" and "cdo". Matches a word that starts with the pattern following \b or ends with the pattern preceding \b. "er\b" matches "never", but not "verb" or "erase". "\ber" matches "erase", but not "verb" or "never". Matches a word that contains the pattern but does not start or end with the pattern. "er\B" matches "verb", but not "never" or "erase". Same as [A-Za-z0-9_], matches a digit, letter, or underscore. "v\w" matches "vlan" and "service". 11