MrNase
Thu 6th May '04, 7:20am
I have a list of 260 entries which looks like the following example:
NUMBER CITY
208 Landau
209 Kiel
210 Aachen
211 Baden-Baden
212 Berlin
214 Dortmund
215 Mönchengladbach
216 Düsseldorf
217 Frankfurt
218 Fulda
219 Hamburg
220 Hannover
221 Köln, Leverkusen (new)
222 Wuppertal
Now i want to replace any number with:
case 'NUMBER':
And any city with:
$land= 'CITY';
break;
Now i need a regular expression for this.
My editor allows me to use it to search and replace.
This is really urgent because people are waiting for the end result ;)
NUMBER CITY
208 Landau
209 Kiel
210 Aachen
211 Baden-Baden
212 Berlin
214 Dortmund
215 Mönchengladbach
216 Düsseldorf
217 Frankfurt
218 Fulda
219 Hamburg
220 Hannover
221 Köln, Leverkusen (new)
222 Wuppertal
Now i want to replace any number with:
case 'NUMBER':
And any city with:
$land= 'CITY';
break;
Now i need a regular expression for this.
My editor allows me to use it to search and replace.
This is really urgent because people are waiting for the end result ;)