Case Insensitive

This topic contains 1 reply, has 2 voices, and was last updated by Profile photo of Bob McCoy Bob McCoy 1 year, 8 months ago.

  • Author
    Posts
  • #24973
    Profile photo of Mikhael Kaendera
    Mikhael Kaendera
    Participant

    Is there away to make the Replace function case insensitive.

    Replace('Host="ACfile01"','Host="vCHPprt02"')

    I also want to be able to replace the following line

    Replace('Host="ACFile01"','Host="vCHPprt02"')

  • #24974
    Profile photo of Bob McCoy
    Bob McCoy
    Participant

    You could use the -replace operator instead of the .Replace() method.

    "FooBar" -replace "foo","Tango"

You must be logged in to reply to this topic.