Jump to content

String Replace Sensitive case


cynapse
 Share

Recommended Posts

Hi !

i need some help to write my script :

I have a file with generic strings which contain word <PROJECT> that i'd like to parse with the content of my variable $project

ex : $data = "./start.sh <PROJECT>"

so I use StringReplace($data, "<PROJECT>", $project) and that works.

However, i'd like to parse my string <PROJECT> case-sensitivly.

Exemple : if $data = "./start.sh <Project>" and $project = "ABCDEF", i'd like to have $res = "./start.sh Abcdef" (with the first character in upper mode)

Could you help me please ?

Thanks !

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...