I'm kind of on a time crunch for a SQL schema migration for a large project at work, and haven't ever used regular expressions in C#. So I'm looking for a quick turn around hopefully. How can I write a regular expression in C# so it finds these values in a variable that's a string. If it's easier/quicker to piece out the number, that's fine too. I just want to make sure it works for all numbers inside the parentheses.
CHARACTER VARYING(8000) ==> regex returns false because the length is <= 8000
CHARACTER VARYING(8001) ==> regex returns true because the length is > 8000
So my string would be, "CHARACTER VARYING({0})"