<Survey name='USM1' groupName='US Malls' priority='4' status='1' cellLimiter='100'becomes
surveyLimiter='100' dateStart='2004-01-07T09:30:00' dateEnd='2006-01-28T16:30:00'
exclusions='0' cluster='Cluster1' allSurveysExclusion='-1' surveyType='AdHoc'
excludeSurveyType='' excludeSurveyTypeDays='-1' >
<Survey name='USM1' groupName='US Malls' priority='4' status='1' cellLimiter='100'This handy little regex replaced them all with the highest level of quality assurance:
surveyLimiter='100' dateStart='2004-01-07T09:30:00' dateEnd='2006-01-28T16:30:00'
exclusions='0' cluster='Cluster1' allSurveysExclusion='-1' surveyType='AdHoc'
excludeSurveyType='' excludeSurveyTypeDays='-1' jobNumber='JN-USM1'
localJobNumber='LJN-USM1' nickName='Nick-USM1' >
Find What:
\<Survey name='{[a-zA-Z0-9]+}'{[^>]+}{\>}Replace With:
\<Survey name='\1'\2 jobNumber='JN-\1' localJobNumber='LJN-\1' nickName='Nick-\1' >
Note that the value of the "name" attribute is gathered into the '\1' variable because its description is surrounded with curly braces.
No comments:
Post a Comment