Regular Expression to modify a T-SQL query to return formatted dates. (Search and Replace REGEX)

I need a Regular Expression to reconstruct a T-SQL query with a bunch of date columns.

With query items like this:
      ,[ObtainedGADataSheet]
      ,[C_ObtainedGADataSheet]
      ,[ReceivedJobDesc]
      ,[C_ReceivedJobDesc]

The result should look like this:
      ,CONVERT(Varchar,[ObtainedGADataSheet],101) AS 'ObtainedGADataSheet'
      ,CONVERT(Varchar,[C_ObtainedGADataSheet],101) AS 'C_ObtainedGADataSheet'
      ,CONVERT(Varchar,[ReceivedJobDesc],101) AS 'ReceivedJobDesc'
      ,CONVERT(Varchar,[C_ReceivedJobDesc],101) AS 'C_ReceivedJobDesc'

The text editor I'm using to accomplish this is called "EditPad Pro 7" by "Just Great Software Co. Ltd." and supports Regex search and replaces.

I'm tried this in the Search: field:
,.*

And this in the Replace: field:
,CONVERT(Varchar,$&,101) AS '\0'

And I get this result:
      ,CONVERT(Varchar,,[ObtainedGADataSheet],101) AS ',[ObtainedGADataSheet]'
      ,CONVERT(Varchar,,[C_ObtainedGADataSheet],101) AS ',[C_ObtainedGADataSheet]'
      ,CONVERT(Varchar,,[ReceivedJobDesc],101) AS ',[ReceivedJobDesc]'
      ,CONVERT(Varchar,,[C_ReceivedJobDesc],101) AS ',[C_ReceivedJobDesc]'

There are two extra commas in this result.  Each extra is before a "[" character.   I see where it's coming from, but I don't know how to fix it.  Note that the brackets should be removed from the field name after "AS."

Thanks a bunch.
*Oh, I don't want a Python or C# solution, I'll be continuing to use my text editor's search and replace feature.
A reference to it's syntax can be found here, but it's pretty standard:
http://www.regular-expressions.info/replacematch.html
LVL 1
megninAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

megninAuthor Commented:
I worked it out.  This works and meets all of my criteria:

With:
      ,[ObtainedGADataSheet]
      ,[C_ObtainedGADataSheet]
      ,[ReceivedJobDesc]
      ,[C_ReceivedJobDesc]

Search:
\[(\w+)\]

Replace:
CONVERT(Varchar,\0,101) AS '\1'

Results:
      ,CONVERT(Varchar,[ObtainedGADataSheet],101) AS 'ObtainedGADataSheet'
      ,CONVERT(Varchar,[C_ObtainedGADataSheet],101) AS 'C_ObtainedGADataSheet'
      ,CONVERT(Varchar,[ReceivedJobDesc],101) AS 'ReceivedJobDesc'
      ,CONVERT(Varchar,[C_ReceivedJobDesc],101) AS 'C_ReceivedJobDesc'

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Regular Expressions

From novice to tech pro — start learning today.