I need to do things in 2 steps here:
- modify all occurences of [xx_someText] with [someText]
- modify all occurences of [someText] with [SomeText]
I need this in 2 regex because some table names are not prefixed with xx_
I am on a windows machine.
I have access to unix, BUT I am using the GIT bash utility which seems to have sed and perl installed in case that is easer?
UPDATE
Sample Input:
CREATE TABLE [dbo].[xx_attribute]( [attributeID] [int] NOT NULL, [dateTypeID] [tinyint] NOT NULL,
should output as:
CREATE TABLE [dbo].[Attribute]( [AttributeID] [int] NOT NULL, [DateTypeID] [tinyint] NOT NULL
note: the values [int] and [tinyint] will prolly become [Int] and [Tinyint] which is no biggie.