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
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:
#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
}
}