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
Post a Comment