# Problem with RegEx syntax

**URL:** <https://forum.cloverdx.com/t/problem-with-regex-syntax/1129>\
**Category:** CloverDX Platform\
**Created:** [October 22, 2012, 12:00am UTC](https://forum.cloverdx.com/t/problem-with-regex-syntax/1129 "2012-10-22T00:00:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![codemonkee](https://avatars.discourse-cdn.com/v4/letter/c/839c29/32.png) [@codemonkee](https://forum.cloverdx.com/u/codemonkee)\
**Post date:** [October 22, 2012, 12:00am UTC](https://forum.cloverdx.com/t/problem-with-regex-syntax/1129/1 "2012-10-22T00:00:00Z")

</div>

I’m attempting to use the find() function to locate characters in a string that repeat 4 or more times.

I’ve tried “[(\\w)\\1{4,}]” but it complains of an “Illegal/unsupported escape sequence near index 6”. Is there a problem with referencing subexpressions/groups? Any suggestions?

---

<div class="post-metadata">

**Author:** ![imriskal](https://avatars.discourse-cdn.com/v4/letter/i/b38774/32.png) [@imriskal](https://forum.cloverdx.com/u/imriskal)\
**Post date:** [October 23, 2012, 12:00pm UTC](https://forum.cloverdx.com/t/problem-with-regex-syntax/1129/2 "2012-10-23T12:00:18Z")

</div>

Hi CodeMonkee,

I think that problem is in the square brackets, try to remove them. Btw. If you want four or more characters, you should use this:

```auto
"(\\w)\\1{3,}"

```

(You want to match a single character and then that character repeated three more times.)

Best regards,
