regex - Select all spaces except those in a group -


अगर मेरे पास निम्न पाठ है:

यह एक नमूना वाक्य है जिसमें Regex texting के लिए "उन में रिक्त स्थान के साथ उद्धरण" यहां "एक अन्य" बोली दी गई है।

मैं पाठ में हर जगह का चयन करना चाहूंगा उन उद्धरणों में से।

मेरे पास एक रेगेक्स समूह है ( ("[\ w ^ \ s] *") ) उद्धरणों से मिलान करते हुए, लेकिन मैं यह नहीं समझ सकता कि रीजेक्स को सब कुछ कबूल करने के लिए IGNORE।

पाठ कहते हैं कि ^ ("[\ w ^ \ s] *") अमान्य है, और मैं नहीं जानता कि मैं क्या कर सकता हूं।

मैंने भी कोशिश की है (?: "[\ w ^ \ s] *") लेकिन वह भी काम नहीं करता है।

आप इस regex का उपयोग कर सकते हैं:

  (? = (?: (?: [^ "] *") {2}) * [^ "] * $) +   

मान लें कि कोई बचने अपवाद नहीं है।

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 -