# RegExp help

**URL:** <https://forum.kirupa.com/t/regexp-help/312568>\
**Category:** Uncategorized\
**Created:** [August 6, 2010, 9:30pm UTC](https://forum.kirupa.com/t/regexp-help/312568 "2010-08-06T21:30:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![KiKaL](https://avatars.discourse-cdn.com/v4/letter/k/edb3f5/32.png) [@KiKaL](https://forum.kirupa.com/u/KiKaL)\
**Post date:** [August 6, 2010, 9:30pm UTC](https://forum.kirupa.com/t/regexp-help/312568/1 "2010-08-06T21:30:00Z")

</div>

I am trying to do a search that locates the string anywhere in the RSS feed and is case insensitive. I have it working fine when it’s still case insensitive but when I throw in the /i I break it.

```php

        pattern=new RegExp("/\\b"+kSearch+"\\b/i");
        search = myXML.channel.item.(pattern.exec(title));

```
