Eduction 23.2

# 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-2023 Open Text
Version 23.2 | Last updated March 2023

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to swpdl.idoldocsfeedback@microfocus.com.

We appreciate your feedback!

Product: IDOL Eduction 23.2

Topic Title: LuaEdkMatch:new