Quantcast
Channel: /r/powershell – How to Code .NET
Viewing all articles
Browse latest Browse all 8793

Word Finder script

$
0
0

Hello all,

I’m trying to write a script that will search through a huge list of words (12,777 words) and filter them out. The filter I’m working on now is 1) 6 characters long, 2) The 2nd and 4th characters are the same, and 3) the word ends with “H”. The first 2 filters I can get working, but for whatever reason when I try to add the 3rd filter, the last character being an “H”, it wigs out and doesn’t perform as expected.

Here is the script I have so far and here is the word list I’m using. Also, here is the results I’m getting from running it. As you can see, there’s clearly some words in there not ending with “H” and there’s some random “echo $word” lines thrown in there too.

Any help would be appreciated!

Thanks,

submitted by /u/M1st3rS1r
[link] [comments]

The post Word Finder script appeared first on How to Code .NET.


Viewing all articles
Browse latest Browse all 8793

Latest Images

Trending Articles



Latest Images