Gossamer Forum
Home : Products : DBMan : Customization :

String replacement with similar (but different) values

Quote Reply
String replacement with similar (but different) values
OK - call me a novice - and I have attempted to find an already posted solution- but Pirate

I have introduced the simple string replacement into my PL file as such (inserted at the beginning of sub html_record):

$rec{'org'} =~ s/T/Strategic Transition Office/g;

$rec{'org'} =~ s/TD/Training and Doctrine/g;

My dilemma is that a record containing the second string value above (TD) causes the response to equal that of the first string replacement - so, the result looks like this:

Strategic Transition OfficeD

What's the simple trick in instructing this simple code to recognize a single T vice the combination of TD?

Thanks for any help in advance.

Ferrva