How to replace the string based on an expression
- by deepak
I'm having a string where i'm using some placeholders to replace it with some values based on an object.
It is like the following:
Hello User <#= UserName #>
I need to replace the <#= UserName # with a value.
How can this be done with a regex? Please help. I dont want a string replace solution. There are somany placeholders and hardcoding the <#= UserName # and replace with the value is pointless