Anyone have a sample of something like that?
Thanks
PS>$arr=@(@("a","b","c"),@("d","e","f"))
What exactly do you want to do once you do find a match?
Here's an example:
PS>$arr|foreach{$_|foreach{$_ -match "c"}}
Or perhaps, you have:
PS>$arr=@("foo;bar;abc","def;ghi;jkl")
In the later part, you have 2 elements, but want to *split* out each part
into...
PS>$arr|foreach{$_.split(";")}
"brady maxwell" <maxwe...@osu.edu> wrote in message
news:C65D4B34.632C%maxwe...@osu.edu...
Here are some ideas I can offer.
Here is another way of using Powershell (with the help of DotNet) to do this
for you.
### First I create an array using Ipconfig and display the information###
$Ipconfig = C:\Windows\System32\ipconfig.exe -all
$Ipconfig
### Next I use Dotnet Regex and Foreach-Object ###
$IpconfigInfo =
[regex]::Matches($Ipconfig,'(\w\w-\w\w-\w\w-\w\w-\w\w-\w\w)')|ForEach-Object
-Process {$_.Groups}
### then to display the information ###
$ipconfigInfo|ForEach-Object -Process {$_.Value}
# OR
$ipconfigInfo.SyncRoot[0].value
#OR
$ipconfigInfo.SyncRoot[2].value
## Try it out ##