P
paul reed
Hello, I am using regex to parse a SQL statement. So far so good. However, I
want to be able to use "*" on this one because the Where clause might not
exist at all yet I still want to consider that a match (i.e., * means 0,1,
or more). Here is what I have now. I don't get a match if there isn't a
Where clasue...but I need it to:
"(?<wherePortion>WHERE[\W\w\s]+(?=ORDER))|(?<wherePortion>WHERE[\W\w\s]+)"
Thanks, Paul
want to be able to use "*" on this one because the Where clause might not
exist at all yet I still want to consider that a match (i.e., * means 0,1,
or more). Here is what I have now. I don't get a match if there isn't a
Where clasue...but I need it to:
"(?<wherePortion>WHERE[\W\w\s]+(?=ORDER))|(?<wherePortion>WHERE[\W\w\s]+)"
Thanks, Paul