我有一个像这样的单词列表:
AccountDescriptiveName,
AccountDescriptiveName,
AdGroupName,
AdGroupStatus,
ApprovalStatus,
AverageCpc,
AverageCpm,
AveragePosition,
BiddingStrategyType,
CampaignId,
CampaignStatus,
ClickConversionRate,
ConversionRateManyPerClick,
ConversionsManyPerClick,
ConversionValue,
ConvertedClicks,
Cost,
CostPerConversionManyPerClick,
CostPerConvertedClick,
CpcBid,
CpcBidSource,
Criteria,
Ctr,
EnhancedCpcEnabled,
FirstPageCpc,
Id,
IsNegative,
KeywordMatchType,
LabelIds,
Labels,
QualityScore,
我正在使用Sublime Text并希望使用正则表达式将它们全部放在引号内,所以它们看起来像这样:
'AccountDescriptiveName',
'AccountDescriptiveName',
'AdGroupName',
等等。
我的查找是:(\w+)
但无法找出替换。
答案 0 :(得分:1)
您必须在替换呼叫中反向引用匹配组:
Replace: "\1"