# LuaEdkMatch:new

The constructor for a `LuaEdkMatch` object (creates a new `LuaEdkMatch` object).

## Syntax

`LuaEdkMatch:new()`

or

`LuaEdkMatch:new(entity_name, matched_text, offset)`

## Arguments

NOTE: You can use this constructor without arguments to create a match without values set. However, to reduce the amount of repeated code, Micro Focus recommends that you use the alternative version that allows you to create a match with some important information populated.

Argument | Description
--- | ---
`entity_name` | The name of the entity that the match belongs to.
`matched_text` | The matching text.
`offset` | The position of the match (in bytes).

## Returns

(`edkMatch`). The new `edkMatch` object.

© Copyright 2013-2020 Micro Focus or one of its affiliates | Send documentation feedback Close Send documentation feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a mail client, and then send this email to swpdl.idoldocsfeedback@microfocus.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_FT_HTML5_bannerTitle.htm