Search found 107 matches

by monoeagle
Thu Sep 28, 2017 9:15 pm
Forum: Windows PowerShell
Topic: RegEx in dry practicing will not run
Replies: 8
Views: 577

Re: RegEx in dry practicing will not run

Good morning jvierra,

thx

if you mean the ";"'s in the $input, why it doesn't throw an syntaxerror?

regards
by monoeagle
Thu Sep 28, 2017 3:55 am
Forum: Windows PowerShell
Topic: RegEx in dry practicing will not run
Replies: 8
Views: 577

Re: RegEx in dry practicing will not run

new dummy try $result = '' $input = @('aaa-b-cc11';'aaa-b-cc12';'aaa-b-cc14';'vvv-b-cc11';'test (rrr-b-cc11)') $input Write-Host '-------------------' $result = @() foreach($value in $input){ #$value.Length if($value.Length -gt 10){ if($value -match '\((.*)\)'){ $new = $result += $matches[1] } }else...
by monoeagle
Thu Sep 28, 2017 3:34 am
Forum: Windows PowerShell
Topic: RegEx in dry practicing will not run
Replies: 8
Views: 577

Re: RegEx in dry practicing will not run

hmmm sry I thought that what the source and result should be is understandable. Yes I want the name inside the "(" <name> ")". That's why I wrote the RegEx '^.*([a-z]{3}-b-cc1[1-4])$' to find in a variable string the Nameblock. the first 3 positions are letters -b-cc1 is allready the same the last n...
by monoeagle
Thu Sep 28, 2017 3:04 am
Forum: Windows PowerShell
Topic: RegEx in dry practicing will not run
Replies: 8
Views: 577

Re: RegEx in dry practicing will not run

sry =) dry practice(from the translator or in german "trockenübung") --> cutting the script down and testing the smallest part in the ISE. The source list is the result from an xml file, which I can't upload that's why I postet what as source is delivered. $doc.SelectNodes("//Object") | Where-Object...
by monoeagle
Thu Sep 28, 2017 2:24 am
Forum: Windows PowerShell
Topic: RegEx in dry practicing will not run
Replies: 8
Views: 577

RegEx in dry practicing will not run

Hi@All, I have a little Problem with my dry practice. source test (aaa-b-cc11) test (aaa-b-cc11) test (aaa-b-cc12) www-b-cc13 zzz-b-cc14 test (aaa-b-cc11) www-b-cc13 result should be aaa-b-cc11 aaa-b-cc12 www-b-cc13 zzz-b-cc14 $result = $doc.SelectNodes("//Object") | Where-Object {($_.Name -like '*-...
by monoeagle
Wed Sep 20, 2017 10:35 am
Forum: PowerShell GUIs
Topic: Menubar Icons are missing if I'm using imagekey instead of imageindex
Replies: 2
Views: 93

Re: Menubar Icons are missing if I'm using imagekey instead of imageindex

ok that sounds plausible

what is a scenario where I have to use imagekey?

if the files are physical on the hdd as files?
by monoeagle
Wed Sep 20, 2017 9:04 am
Forum: PowerShell GUIs
Topic: Menubar Icons are missing if I'm using imagekey instead of imageindex
Replies: 2
Views: 93

Menubar Icons are missing if I'm using imagekey instead of imageindex

Hi@All, PSS 2017 last Patchlevel W7 x64 Building a menubar with icon wasn't that difficult, imagelist, adding images, set the imageindex on the button voala. Bildschirmfoto 2017-09-20 um 17.49.44.png But if I use imagekey instead the result is a button line without any icon. Bildschirmfoto 2017-09-2...
by monoeagle
Fri Sep 15, 2017 3:45 am
Forum: PowerShell GUIs
Topic: DataGridView sometime Colored sometime not
Replies: 5
Views: 149

DataGridView sometime Colored sometime not

Hi@All, I think it's a littlebit OT, because I can't use here the PSS and have to use MS ISE. But if someone can give a hint it would be extremly nice. I have a curious behavier with my GUI. Environment: W10, PS5 If I open and start the script from ISE the cells are colored as it should be. BUT just...