Hello: > string regex = > @"(('[^']*?\@[^']*')*[^'@]*?)*(?<param>@\w+)([^'@]*?('[^']*?\@[^']*'))*"; Huummm this seems to work, now i need to see how i can replace each named parametr with a placeholder, ? ( i need this for the Firebird .NET Data Provider hehe ;) ) -- Best regards Carlos Guzmán Álvarez Vigo-Spain