Simple regex question (C#, MS SQL)

Posted by Vytas999 on Stack Overflow See other posts from Stack Overflow or by Vytas999
Published on 2010-03-08T21:16:12Z Indexed on 2010/03/08 21:21 UTC
Read the original article Hit count: 300

Filed under:
|
|
|
|

Hello, I have some Regex, it looks like this:

string regexForDrop = @"^((%27)|'|(\-\-))\s*(d|%64|%44)(r|%72|%52)(o|%6F|%4F)(p|%70|%50)$";

It works fine, when i write to the input "--drop", but it does not works, when i write "drop table users" or something like that. I need that it would be working, no matter what comes after "--drop". How i can implement that? Thanks

© Stack Overflow or respective owner

Related posts about c#

Related posts about regex