Click here to Skip to main content
15,880,405 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I want to replace any angular binding code with blank space.

C++
{{::binder}} /sometext


I want the value from above string is:
C++
/sometext


for this i need to replace {{****}} this pattern.

How can i achieve this functionality using regex?

What I have tried:

New to regex. I'm trying my level best from different examples.
Posted
Updated 2-May-16 1:36am

1 solution

Depends on your language, but for .NET it would be:
C#
string result = regex.Replace(inputText,"{{.*}}", "");
Or
VB
Dim result As String = regex.Replace(inputText, "{{.*}}", "")

[edit]I HATE MARKDOWN![/edit]
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900