# Processing 3 Escaping Regex Characters

**URL:** <https://discourse.processing.org/t/processing-3-escaping-regex-characters/19477>\
**Category:** Coding Questions\
**Created:** [April 6, 2020, 7:25pm UTC](https://discourse.processing.org/t/processing-3-escaping-regex-characters/19477 "2020-04-06T19:25:19Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![glv](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/glv/32/18785_2.png) [@glv](https://discourse.processing.org/u/glv)\
**Post date:** [April 11, 2020, 1:38am UTC](https://discourse.processing.org/t/processing-3-escaping-regex-characters/19477/2 "2020-04-11T01:38:41Z")

</div>

Hello,

I am not familiar with regex but did a quick exploration of this.

Example:

```auto
void setup()
  {
  String s = "192.168.001.001";
  //String[] m = match(s, "\\.");
  String[] m = match(s, "\\.(.*?)\\.");
  
  println("Found '" + m[1] + "' inside the tag.");
  printArray(m);
  }

```

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/a/ae8dbe7a3fad471ddaec5d57740ecbcd1bc59acc.png)

References:  
[https://processing.org/reference/match\_.html](https://processing.org/reference/match_.html)  
[https://py.processing.org/reference/string.html](https://py.processing.org/reference/string.html)

Update (I had the py version above):  
[https://processing.org/reference/String.html](https://processing.org/reference/String.html)  
`:)`

---

_[View the full topic](https://discourse.processing.org/t/processing-3-escaping-regex-characters/19477)._
