Parse out all the "{" + string + "}" occurences?
-
Is there a way to iterate through a string of text and find each occurence of a string that contains a substring of "{" + (variable string) + "}" and replace it with a corresponding string defined in a dictionary (of which the key value is the "{" + (variable string) + "}" ??
-
Is there a way to iterate through a string of text and find each occurence of a string that contains a substring of "{" + (variable string) + "}" and replace it with a corresponding string defined in a dictionary (of which the key value is the "{" + (variable string) + "}" ??
-
Is there a way to iterate through a string of text and find each occurence of a string that contains a substring of "{" + (variable string) + "}" and replace it with a corresponding string defined in a dictionary (of which the key value is the "{" + (variable string) + "}" ??
Yes. I suppose you'll want a hint as to how! :) If the string is formatted such that { and } only occur as a wrapper to a variable name then the easiest way I can think of is to run a regex on it, match all "\{[^\}]\}" and iterate through them. If not you'll probably have to write a lexer of some kind.
10110011001111101010101000001000001101001010001010100000100000101000001000111100010110001011001011
-
string OldStr = "Application";
string NewStr = "Program";string str = @"Run the Application , Close the Application and Delete the Application"; str = str.Replace(OldStr, NewStr);
I know nothing , I know nothing ...
-
Yes. I suppose you'll want a hint as to how! :) If the string is formatted such that { and } only occur as a wrapper to a variable name then the easiest way I can think of is to run a regex on it, match all "\{[^\}]\}" and iterate through them. If not you'll probably have to write a lexer of some kind.
10110011001111101010101000001000001101001010001010100000100000101000001000111100010110001011001011
-
Is there a way to iterate through a string of text and find each occurence of a string that contains a substring of "{" + (variable string) + "}" and replace it with a corresponding string defined in a dictionary (of which the key value is the "{" + (variable string) + "}" ??