How about something like:

\W+(@\w+)\W+

--chris

On Wed, 18 Feb 2004, Carlos Guzmán Álvarez wrote:

> Hello:
>
> Any idea on how to extract named parameters from a sql command using
> regex ??
>
> For example having this:
>
> update users set PhotoPath = '[EMAIL PROTECTED]' where userid = @userid
>
>
> I need to extract only:
>
> @userid
>
>
>
> Any idea ??
>
>
>
> --
> Best regards
>
> Carlos Guzmán Álvarez
> Vigo-Spain
> _______________________________________________
> Mono-list maillist  -  [EMAIL PROTECTED]
> http://lists.ximian.com/mailman/listinfo/mono-list
>
_______________________________________________
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to