I need to created a method which validates if a string contains an escaped unicode character. First thing that passed through my mind was to convert the string to char[] in order to get each element and then just to extract the "\uxxxx" from there. It didn't work. Here is a little thing:
public static string Quoted(string text)
=> $"\"{text}\"";
string inputData = Quoted(@"a \u26Be b");
Console.WriteLine(inputData) // ==> output will be: "a \u26Be b"
So there is obviously an large unicode character. I feel those quotes make my work harder. Also, I'm a begginer who just passed the alghoritm part of learning, now I'm learning and working with .Json, github, gitbash, etc. This task is one unit test in order to validate .Json file. Any help or hints would be appreciated. Thanks in advance!