- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
1.
You can combine multiple targets strings with an OR in a RegEx with the vertical bar ('|').
for example, the following "one|two|three", will match the target on 'one' or 'two' or 'three'
2.
Without seeing the code where the content of $fields is created, I can't really explain what the split method is doing.
But it looks as if it splits the string on a dot, and then takes the 7th field.
For example, if the content is "1.2.3.4.5.6.7.8", then it would return "7"
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference