我正在尝试用文本替换两个字母的状态缩写,然后是缩写。最终我想找到并替换其余的。如何捕获找到的值?....我试过 \1 和 {1}
AL 32.2679134368897 -86.5251510620117
AR 35.2315113544464 -92.2926173210144
AZ 33.3440766538127 -111.955985217148
CO 39.7098631425337 -104.899092934348
if( usState == "AZ") dpos= "33.4736704187888" + " " + "-112.043138087587";
if( usState == "CA") dpos= "36.0783581515733" + " " + " -119.868895584259";
if( usState == "CO") dpos= "39.8950788035537" + " " + " -104.831521872318";
if( usState == "CT") dpos= "41.6001570945562" + " " + " -72.6606015937273";
更新 $1 不起作用。
我发现: [AZ][AZ] 替换为: if( usState == "$1