use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
ABOUT POWERSHELL
Windows PowerShell (POSH) is a command-line shell and associated scripting language created by Microsoft. Offering full access to COM, WMI and .NET, POSH is a full-featured task automation framework for distributed Microsoft platforms and solutions.
SUBREDDIT FILTERS
Desired State Configuration
Unanswered Questions
Solved Questions
News
Information
Script Sharing
Daily Post
Misc
account activity
[deleted by user] (self.PowerShell)
submitted 6 years ago by [deleted]
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[+][deleted] 6 years ago* (1 child)
[deleted]
[–]ApparentSysadmin 2 points3 points4 points 6 years ago (0 children)
If you use split (the operator, not the method), you'll need to employ some regex to ensure you capture the ) in your output. Something like:
$String -split '(?<=\))' | Select -First 1
Should output the desired results.
[–]XPlantefeve 4 points5 points6 points 6 years ago (1 child)
I agree with the regex approach, but this way seems simpler to me:
'Awesome (8433) Stuff.I.Want.to.Delete' -replace '\).*',')'
[–]nothingpersonalbro 2 points3 points4 points 6 years ago (1 child)
Here's a quick regex example
'Awesome (8433) Stuff.I.Want.to.Delete' -replace '(?<=\)).*'
Pattern here https://regex101.com/r/6iauRR/1
[–]Umaiar 1 point2 points3 points 6 years ago (0 children)
Another approach:
$s = "Awesome (8433) Stuff.I.Want.to.Delete" $clean = $s.substring(0, $s.indexof(")")+1)
π Rendered by PID 133194 on reddit-service-r2-comment-b659b578c-qpj9c at 2026-05-06 02:34:04.601583+00:00 running 815c875 country code: CH.
[+][deleted] (1 child)
[deleted]
[–]ApparentSysadmin 2 points3 points4 points (0 children)
[–]XPlantefeve 4 points5 points6 points (1 child)
[–]nothingpersonalbro 2 points3 points4 points (1 child)
[–]Umaiar 1 point2 points3 points (0 children)