Kurznotitz / Sticky note
The following examples can easily identify copy and paste in the Power Shell. The largest error source is the typo. The examples use the Microsoft. Net class for regular expressions.
The MSDN documentation contains
some examples, but are unfortunately placed in read errors. This makes the already difficult to understand even more difficult to read on. Here are some examples of using the Power Shell:
[regex]:: matches (901-333 -","^ \\ d {3} ") item (0) value, it # is 901 instead of 901 -.. issued
[regex]:: matches ("901-333 -", "\\ A \\ d {3}") item (0) value.. .. # Is 901 instead of 901 - ausgegeen
[regex]:: matches ("We are the peat bog soldiers and ...","( \\ w) \\ 1") item (0) value # finds duplicate letters oo
[regex]:: matches ("1234 3412", "\\ b (\\ d {2}) (\\ d {2}) \\ 2 \\ 1") item (0) value # Back references to two groups
[regex.. ]::. matches ("\u0026lt;tag> text \u0026lt;/ tag >","\u0026lt;([ ]+)>[ az az] + "..) Item (0) value # so ignore case option
[regex]:: matches (" \u0026lt;tag> text \u0026lt;/ tag >","(? i )\u0026lt;.*>"). . item (0) value # * is greedy, to the last>
[regex]:: matches ("\u0026lt;tag> text \u0026lt;/ tag >","(? i )\u0026lt;.*?>" ..?) item (0) value # lazy, until the first> is
0 comments:
Post a Comment