I'm trying to replace any decimal variable from text to decimal (25,10)
ex :
declare @x decimal (10,8)
declare @x decimal(6,5)
declare @x decimal ( 12,5)
declare @x decimal (10 ,9)
declare @x decimal (7, 5)
declare @x decimal ( 10,5)
declare @x decimal (10,5) , @y int
declare @x decimal (10,5) , @U decimal (9,10)

after replace will be

declare @x decimal (25,10)
declare @x decimal (25,10)
declare @x decimal (25,10)
declare @x decimal (25,10)
declare @x decimal (25,10)
declare @x decimal (25,10)
declare @x decimal (25,10) , @y int
declare @x decimal (25,10) , @U decimal (25,10)

using dbo.RegExReplace
i can't get the target pattern
any one can help me ?