# Double Quotes in Logstash Ruby Code

**URL:** <https://discuss.elastic.co/t/double-quotes-in-logstash-ruby-code/123861>\
**Category:** Logstash\
**Created:** [March 14, 2018, 8:54am UTC](https://discuss.elastic.co/t/double-quotes-in-logstash-ruby-code/123861 "2018-03-14T08:54:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![paul1243](https://avatars.discourse-cdn.com/v4/letter/p/e99b99/32.png) [@paul1243](https://discuss.elastic.co/u/paul1243)\
**Post date:** [March 14, 2018, 8:54am UTC](https://discuss.elastic.co/t/double-quotes-in-logstash-ruby-code/123861/1 "2018-03-14T08:54:41Z")

</div>

Hi,  
I know, the parsing would end in the ruby code of the filter plugin, if we use double quotes inside the block, but I have a regex to be used in the code, which has double quotes, something like this **(/backingupsize: "([^/$]\*)/)"**.

Is there anyway I can replace the double quotes to avoid the exception in Logstash ? please help @magnusbaeck.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [April 11, 2018, 8:54am UTC](https://discuss.elastic.co/t/double-quotes-in-logstash-ruby-code/123861/2 "2018-04-11T08:54:53Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
