[Mono-list] Regex question

Carlos Guzmán Álvarez carlosga@telefonica.net
Wed, 18 Feb 2004 15:26:24 +0100


Hello:

hehe finally i have done another change :P

with this sample:

select * from test where int_field = @inf_field and varchar_field = 
'carlosga@telefonica.net' and char_field = 'llsdlk@@@jdj@@' and 
double_field=@double_field

this regex:

@"(('[^']*?\@[^']*')*[^'@]*?)*(?<param>@\w+)*([^'@]*?('[^']*?\@[^']*'))*"

results on 58 matches ( most of them empty )

this:

@"(('[^']*?\@[^']*')*[^'@]*?)*(?<param>@\w+)+([^'@]*?('[^']*?\@[^']*'))*";

results on 2 matches :)

let me know if you think that it's not correct :)



-- 
Best regards

Carlos Guzmán Álvarez
Vigo-Spain