regex - Erlang: How to split line with commas but avoiding the ones inside quotes? -


regexp / ("। * *" | [^ ", \ S] +) देता है (? =? \ S *, | \ s * $) / । एर्लांग पुन: विभाजन () में इसका उपयोग कैसे करें? एर्जिंग के साथ regexp काम नहीं करता। < पूर्व> 1 & gt; एस = "20140419, \" ब्ला ब्ला, फू फू ", 1,0,0,0,1,2,0,0"। 2 & gt; फिर: विभाजन (एस, "(\ "। *? \" | [^ \ ", \ s] +,) (? = \ s *, | \ s * $)", [{रिटर्न, सूची}])। ["20140421,", "ब्ला ब्ला, फू फू", ", 1,0,0,0,1,2,0,0"]

परिणाम मैं सूची के लिए देख रहा हूँ

  ["20140421", "\" ब्ला ब्ला, फू फू \ "" 1 "," 0 "," 0 "," 0 " , "1", "2", "0", "0"]   

धन्यवाद।

[एम] [एम] & लेफ्टिनेंट; - मैचों] ["20140419", "\" ब्ला ब्ला, फू फू \ " शेल कमांड 2 नोट में "1", "0", "0", "0", "1", "2", "0", "0"]

\ s को ठीक से निर्दिष्ट करने के लिए पैटर्न में डबल बैकस्लैश का उपयोग करें।

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -