C# - RegEx to match pattern

Posted on 2014-07-14
Last Modified: 2014-07-14
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.
Question by:JElster
    LVL 74

    Accepted Solution

    Error *[0-9]+(?:\.[0-9]+)?

    Open in new window

    LVL 1

    Author Comment

    How do I use it in a LINQ 2 SQL statement?
    LVL 74

    Expert Comment

    by:käµfm³d 👽
    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.
    LVL 62

    Expert Comment

    by:Fernando Soto
    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.
    LVL 1

    Author Comment

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

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    Introduction This article series is supposed to shed some light on the use of IDisposable and objects that inherit from it. In essence, a more apt title for this article would be: using (IDisposable) {}. I’m just not sure how many people would ge…
    This article introduced a TextBox that supports transparent background.   Introduction TextBox is the most widely used control component in GUI design. Most GUI controls do not support transparent background and more or less do not have the…
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!
    This video discusses moving either the default database or any database to a new volume.

    733 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    26 Experts available now in Live!

    Get 1:1 Help Now