---
title: "__escapeOroRegexpChars"
description: "JMeter __escapeOroRegexpChars function reference: syntax, parameters, and practical examples for parameterizing test plans with dynamic values."
url: https://docs.jmeter.ai/functions/escapeororegexpchars/
lastUpdated: 2026-10-01
source: docs.jmeter.ai
---

# __escapeOroRegexpChars

*Also documented in context in the [full Functions and Variables reference](/user-manual/functions/#__escapeOroRegexpChars).*

Function which escapes the ORO Regexp meta characters, it is the equivalent of `\Q` `\E` in Java Regexp Engine.

For example,

```bash
\${__escapeOroRegexpChars([^"].+?,)}
```

returns:
`\[\^\"\]\.\+\?`.

Uses Perl5Compiler#quotemeta(String) from ORO.

| Name | Required | Description |
| --- | --- | --- |
| String to escape | Yes | The string to be escaped. |
| Variable Name | No | A reference name - `refName` - for reusing the value created by this function. Stored values are of the form `\${refName}`. |

## Related

- [Functions and Variables Guide](/topics/functions-and-variables/)
- [Regex Extractor Builder](/tools/regex-tester/)
- [Full Functions Reference](/user-manual/functions/)
- [Component Reference](/user-manual/component-reference/)
