我的字符串是:如何在我的字符串中使用正則表達式來轉義''?
1BFM\",\"1BFR\",\"1BFZ\",\"1BKFH\",\"2BFE1\",\"2BFE2\",\"2BFH1A\",\"2BFH1B\",\"2BFH2A\",\"2BFH2B\",\"2BFM1\",\"2BFM2\",\"2BFP1\",\"2BFP2\",\"2BKIK1\",\"2BKIK2\",\"3BFA1\",\"3BFA2\",\"3BFA3\",\"B1SK\",\"B1MA\",\"BEJ1\",\"BEJ2\",\"BVE\",\"BVJK1\",\"BVJK2\",\"E1EI\",\"E1ME1\",\"E1ME2\",\"E1ME3\",\"E2EI\",\"E2ME1\",\"E2ME2\",\"E3EI\",\"E3ME1\",\"E3ME2\",\"E4EI\",\"E4ME1\",\"E4ME2\",\"FBF\",\"FBFK1A\",\"FBFK1B\",\"FBFK1C\",\"FBFK2A\",\"FBFK2B\",\"K2FR\",\"K3FR\",\"M1MV1\",\"M1MV2\",\"M1MV3\",\"M1SV\",\"M1VK1\",\"M1VK2\",\"M2MV1\",\"M2MV2\",\"M2MV3\",\"M2MV4A\",\"M2MV4B\",\"M2SV\",\"M2VK1\",\"M2VK2\",\"M3MV1\",\"M3MV2\",\"M3MV3\",\"M3SV\",\"M3VK1\",\"M3VK2\",\"M4MV1\",\"M4MV2\",\"M4MV3\",\"M4MV4\",\"M4SV\",\"R2PW\",\"R3PW\",\"R4PW\",\"SG8\",\"SG11A\",\"SG11B\",\"SG12A\",\"SG12B\",\"SG13\",\"TGI11\",\"TGI12\",\"TGI13\",\"TGME11\",\"TGT12\",\"TGT13\",\"TGTM11\",\"TGTM12\",\"TGTM13\",\"VAB\",\"Z2TI\",\"Z3TI\",\"Ab-FWG\",\"FA-CHSE\",\"Fo-CHSE\",\"HM-CHSE\",\"Rd-BSZ\",\"SCHB-FWG\",\"Sl-CHSE\",\"Zp-CHSE\",\"SET\",\"SLT\",\"Fußball-AG\",\"PD\
和我的正則表達式到目前爲止是這樣的:
(\".*?\")
我現在得到的是類似的東西:
1BFM\
1BFM\
1BFR\
1BFZ\
1BKFH\
2BFE1\
2BFE2\
2BFH1A\
2BFH1B\
2BFH2A\
2BFH2B\
所以我有什麼要做到最後\還會逃脫?
您使用哪種語言? –
java。這是我的代碼到目前爲止:http://ideone.com/OZ1G0Q – maysi
轉義它就像其他任何東西:'\\\' –