Link to home
Start Free TrialLog in
Avatar of JElster
JElsterFlag for United States of America

asked on

C# - RegEx to match pattern

I need help with a RegEx expression to match  to 'Error X.X"
Where X.X is a number  
It may also be without a decimal place  like   'Error X'
thx inadvance.
ASKER CERTIFIED SOLUTION
Avatar of kaufmed
kaufmed
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of JElster

ASKER

How do I use it in a LINQ 2 SQL statement?
thx
You can't. SQL Server doesn't not support regex queries unless you enable CLR Integration and then write a module that you can call in your queries. You would need to retrieve the data, and then filter it using LINQ-to-Objects.
Hi JElster;

Maybe if you tell us what you need to accomplish in the Linq to SQL query whether it be filtering or selecting we could come up with an alternative option.
Avatar of JElster

ASKER

I will open another question.. I need to parse out  'Sentences' that be begin with  'Error'