Hello: > string regex = > @"(('[^']*?\@[^']*')*[^'@]*?)*(?<param>@\w+)([^'@]*?('[^']*?\@[^']*'))*"; I have done a little modification, for avoid hang when there are no named parameters: @"(('[^']*?\@[^']*')*[^'@]*?)*(?<param>@\w+)*([^'@]*?('[^']*?\@[^']*'))*" let me know if it's not correct :) -- Best regards Carlos Guzmán Álvarez Vigo-Spain