Use JavaScript regex to capture all string values from VBA code -


i want use javascript regex list string values used in vba code.

example:

if cmd = "history report"      range("d2").formula = "=text(""" & createdate & """,""" & replace(subtitleformat, """", """""") & """)"      comment = "this task completed!" end if 

the result be:

1> "history report" 2> "d2" 3> "=text(""" 4> """,""" 5> """" 6> """""" 7> """)" 8> "this task completed!" 

i'm glad have better ideas solve problem.

""*[^"]*"*" 

try this.see demo.

https://regex101.com/r/pg1ku1/19

edited:

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

try this.see demo.

https://regex101.com/r/pg1ku1/23


Comments

Popular posts from this blog

python - TypeError: start must be a integer -

c# - DevExpress RepositoryItemComboBox BackColor property ignored -

django - Creating multiple model instances in DRF3 -