# FRegexPattern constructor not found

**URL:** <https://forums.unrealengine.com/t/fregexpattern-constructor-not-found/1964013>\
**Category:** C++\
**Tags:** unreal-engine\
**Created:** [August 6, 2024, 10:04am UTC](https://forums.unrealengine.com/t/fregexpattern-constructor-not-found/1964013 "2024-08-06T10:04:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![TheEversor](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TheEversor](https://forums.unrealengine.com/u/TheEversor)\
**Post date:** [August 6, 2024, 10:04am UTC](https://forums.unrealengine.com/t/fregexpattern-constructor-not-found/1964013/1 "2024-08-06T10:04:09Z")

</div>

Hello,  
i’m pretty new to c++ and ue so sorry if this is a stupid question…  
i’m struggling a little to use the FRegexPattern and FRegexMatcher in my module. Seems like it’s not finding the constructors that take a FString as first parameter, only the copy and move constructors are found.

This is the HbRpg.Build.cs

```auto
using UnrealBuildTool;

public class HbRpg : ModuleRules
{
    public HbRpg(ReadOnlyTargetRules Target) : base(Target)
    {

        PrivateDependencyModuleNames.AddRange(new string[] { "Core" });

        PrivateDependencyModuleNames.AddRange(new string[] { "HbBase" });
    }

}

```

This is my RegexTest class:

```auto
#pragma once

#include "Core.h"
#include "Internationalization/Regex.h"

class RegexTest
{  
  public void Init()
  {
  FRegexPattern EscapeExpression(TEXT("^\\n")); <-- no instance of constructor matches the argument list   
  }
}

```
