Question: I'm testing a Luis app using Microsoft.Azure.CognitiveServices.Language.LUIS.Runtime package in VS2019.
I getting a list of entities from the prediction but it's a json with many properties. I want to code with it in elengant way, without dealing with json. Is there some class that i can convert the entity into it and work with?

Answer: 
You can do the following:

```
(Get-Content file.txt) -replace '^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}X\s' |
    Set-Content file.txt

```

`-replace` uses regex matching. If you provide no replacement string, then the matching strings will just be replaced with empty string. `^` is start of the string. `\d` is a digit. `{number}` is a quantifier to repeat the previous regex match `number` times. `-` is literal `-`. `\.` is a literal `.`, but it must be backslash escaped because `.` has special meaning in regex. `T` is literal but case-insensitive (you can use `-creplace` for case-sensitive matching). `X` is literal. `:` is literal match. `\s` matches a white space character.
You could just treat it as if it is a CSV and do it his way:

```
Import-Csv ./datafile_in.txt -Delimiter ' ' -Header a, b, c | Select b, c | ConvertTo-Csv -Delimiter ' ' | Select-Object -Skip 1 | Out-File ./datafile_out.txt

```