I have to change a large group of files and text by converting some code to uppercase based on it matching some criteria. The following is the criteria: I need to change all text following a '->' to uppercase. This will always be 1 word. Below is an example:
$line->sample_word9 CONVERTED TO $line->SAMPLE_WORD9
This is due to having to use Oracle now when all my stuff was designed for MySQL. All the object references and such before was based on the actual case of the column in the database, but Oracle makes the object reference all caps no matter what. I have hundreds of pages of code and I'm looking for a regular experession to find all the occurances and change them to uppercase. These will be found all over the code. They won't always be at the begining of a line or at end. Thus I can't base my expression on the beg or end of a line.
Thanks in advance for any help!
$line->sample_word9 CONVERTED TO $line->SAMPLE_WORD9
This is due to having to use Oracle now when all my stuff was designed for MySQL. All the object references and such before was based on the actual case of the column in the database, but Oracle makes the object reference all caps no matter what. I have hundreds of pages of code and I'm looking for a regular experession to find all the occurances and change them to uppercase. These will be found all over the code. They won't always be at the begining of a line or at end. Thus I can't base my expression on the beg or end of a line.
Thanks in advance for any help!