I have a column in database (Sql Server) wich contains values like this:
{\rtf1\ansi\deff0{\fonttbl{\f0\fnil\fcharset0 Courier New;}}\f0\fs22 Negative}
where \rtf1\ansi\deff0{\fonttbl{\f0\fnil\fcharset0 Courier New;}}\f0\fs22 is the text formatting (size, font…).
I’m not interested in this.
I only want to extract the text / string Negative, but the same column may contain also:
{\rtf1\ansi\deff0{\fonttbl{\f0\fnil\fcharset0 Courier New;}}\f0\fs22 Slightly Cloudy}
In other words, I want to grab only the text between fs22 and }
Expected results: Slightly Cloudy or Negative
How to do it in C# or VB.NET?
You can use the following regex