Question: When I tried to enter a text in the below input field I am getting the error although it displayed in the window. The following input element html code is given below. I couldn't understand the reason for the error and unable to find the solution " WebDriverError: unknown error: a.tagName.toUpperCase is not a function"

```
<input type="text" ng-model="$ctrl.tag.name" ng-if="$ctrl.isSelectedMode" autofocus="autofocus" ng-blur="$ctrl.saveTagName()" name="tagName" ng-keyup="$ctrl.escapeEditing($event)" form-validator="$ctrl.tagName.uniqueError.validator" class="ng-valid ng-valid-uniqueness ng-not-empty ng-dirty ng-valid-parse ng-touched" autocomplete="off" style="">

```

I have written code in Page Object Model 

```
 this.AddTag = function(tagname1,tagname2,tagname3){
           let clickAddTag = element(by.xpath("//*[text()='Add Tag']"));
           clickAddTag.click();
           browser.sleep(2000);
           let AddTag = element(by.xpath("//input[@name='tagName']"));
           if(AddTag.isPresent()){
           AddTag.sendKeys(tagname1);
           AddTag.sendKeys(protractor.Key.ENTER);
           clickAddTag.click();
           AddTag.sendKeys(tagname2);
           AddTag.sendKeys(protractor.Key.ENTER);
           clickAddTag.click();
           AddTag.sendKeys(tagname3);
           AddTag.sendKeys(protractor.Key.ENTER);
           }

```

In specs I am calling the method 
BidConfiguration.AddTag('tag1','tag2','tag3');

Answer: 
Hmmm sed doesnt really have concept of greedy or lazy replacement, better to use very similar but more robust perl replace command. Also your sed command is trying to replace the start of the line then first character so long as it isnt a curly brace and then everything else with blank.

Try 

```
perl - pi -e 's/^*?{//g' addyourfilenamehere.

```

Using informatica is also possible using instr to find the position of the first { character and then substr to extract all characters after that character into another port similar to what nico suggests here <https://network.informatica.com/thread/16336>

You'd have a variable integer port lets call FIRSTBREAK set to

```
INSTR(FIELDIN,'{') + 1

```

and your output port set to

```
SUBSTR(FIELDIN, FIRSTBREAK)

```

I personally avoid regular expressions in coding, the are wuite powerful but I've found a number of messes due to unexpected regex behaviour
Thanks a lot! Yes, I have used similar expression to that. 
Output Port= SUBSTR(INPUT\_STRING, INSTR(INPUT\_STRING,'{'), LENGTH(INPUT\_STRING))