Search found 55 matches

by OldLost
Fri Mar 17, 2017 7:56 am
Forum: PowerShell Studio
Topic: Text replacement with regular expressions
Replies: 2
Views: 561

Re: Text replacement with regular expressions

Thanks. I don't know why I didn't think of that in the first place. That worked.
by OldLost
Fri Mar 17, 2017 7:43 am
Forum: PowerShell Studio
Topic: Text replacement with regular expressions
Replies: 2
Views: 561

Text replacement with regular expressions

PowerShell Studio 2017 v5.4.136 x64 Windows Server 2012 R2 64bit I need to replace a set of items in a script, and the easiest way to do this is with a regular expression. Unfortunately, I can't find documented anywhere how to use grouping and backreferences in the Replace With field. Say I had a li...
by OldLost
Wed Mar 15, 2017 8:09 am
Forum: PowerShell Studio
Topic: Minor syntax coloring issue
Replies: 2
Views: 794

Minor syntax coloring issue

PowerShell Studio 2017 v5.4.136 x64
Windows Server 2012 R2 64bit

In the following picture the first "-f" is syntax colored incorrectly. It should be the same color as the second.
Clipboard06.png
Clipboard06.png (5.93 KiB) Viewed 794 times
by OldLost
Tue Mar 14, 2017 2:06 pm
Forum: PowerShell Studio
Topic: No love for filter functions?
Replies: 5
Views: 1015

Re: No love for filter functions?

Sorry, this has been an issue for so long I figured you knew about it already. Here, I've defined the Get-Squared filter function, yet it's colored as an unknown entity. Also, as can be seen, PrimalSense does not recognize it as a function. Clipboard02.png Here it shows PSS saying Get-Squared is unk...
by OldLost
Tue Mar 14, 2017 11:27 am
Forum: PowerShell Studio
Topic: No love for filter functions?
Replies: 5
Views: 1015

No love for filter functions?

PowerShell Studio 2017 v5.4.136 x64
Windows Server 2012 R2 64bit

Any chance PS Studio will begin to support (as in syntax highlighting) filter functions soon?
by OldLost
Fri Nov 11, 2016 4:57 pm
Forum: Windows PowerShell
Topic: Output to clipboard
Replies: 12
Views: 2143

Re: Output to clipboard

So I was correct, in that your code did not do everything the function did, and your statement "This does everything that the function does in one line" was wrong. Your statement did not refer to the OP's question, and it was that to which I was referring.
by OldLost
Fri Nov 11, 2016 3:30 pm
Forum: Windows PowerShell
Topic: Output to clipboard
Replies: 12
Views: 2143

Re: Output to clipboard

I disagree. It doesn't handle pipeline input, for one.
by OldLost
Wed Nov 09, 2016 9:40 am
Forum: Windows PowerShell
Topic: Output to clipboard
Replies: 12
Views: 2143

Re: Output to clipboard

I've been using the following function for a few years now and its always worked for me. function Out-Clipboard { <# .SYNOPSIS Sends the given input to the Windows clipboard. .EXAMPLE dir | Out-Clipboard This example sends the view of a directory listing to the clipboard .EXAMPLE Out-Clipboard "Hell...
by OldLost
Wed Nov 02, 2016 10:32 am
Forum: PowerShell Studio
Topic: Range operator syntax color is incorrect
Replies: 3
Views: 2161

Range operator syntax color is incorrect

PowerShell Studio 2016 v5.2.129 x64 Windows Server 2012 R2 64bit The range operator (..) is not syntax colored correctly. Here is how it looks in the Editor: Clipboard01.png The first period has the color set for "Number", while the second period has the color set for "Text". According to the Option...
by OldLost
Thu Sep 29, 2016 2:39 pm
Forum: PowerShell Studio
Topic: Module contents fails to cache
Replies: 8
Views: 1184

Re: Module contents fails to cache

Thanks DevinL. Good to know it's not just me. :)

Since WMF 5.1 is available only in preview form currently I'm afraid I will not be able to go that route at this time. Will look forward to hearing what the devs find and if it might be fixed in an upcoming version release.