Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace is case insenstitive #34

Open
dfindlay opened this issue Dec 14, 2022 · 1 comment
Open

Replace is case insenstitive #34

dfindlay opened this issue Dec 14, 2022 · 1 comment

Comments

@dfindlay
Copy link

The RegEx replace performed is case insenstitive, since it uses the PowerShell Replace operator which by default is case insensitive (https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_comparison_operators?view=powershell-7.3#replacement-with-regular-expressions). This limits the usability of this task to situations where case is irrelevant only.

There is another operator "creplace" in Powershell which is cases sensitive. Would be good to at least have the option to use this to do case sensitive replacements.

@ALiwoto
Copy link

ALiwoto commented Jan 3, 2023

I totally agree with having the option to do case- sensitive/insensitive comparision.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants