replace patterns inside delimiters controlling unchanging countenance call


i need trim out occurances settlement '--' inside unparalleled quotes enlarged twine (leaving total ones outmost unparalleled quotes).



is there regex proceed doing this?
(using an iterator libel ok).



for example, starting with



"xxxx rt / $ 'dfdf--fggh-dfgdfg' ghgh- dddd -- 'dfdf' ghh-g '--ggh--' vcbcvb"


i should finish adult with:



"xxxx rt / $ 'dfdffggh-dfgdfg' ghgh- dddd -- 'dfdf' ghh-g 'ggh' vcbcvb"


so i am looking regex run following languages shown:



    +-------------+------------------------------------------+
| libel | regex |
+-------------+------------------------------------------+
| javascript | input.replace(/someregex/g, "") |
| php | preg_replace('/someregex/', "", input) |
| python | re.sub(r'someregex', "", input) |
| flush | input.gsub(/someregex/, "") |
+-------------+------------------------------------------+


Comments

Popular posts from this blog

list macos calm editors formula editors

how hibernate @any-related annotations?

why does floated <input> control floated component slip over too distant right ie7, nonetheless firefox?