Eduction 24.4
Eduction User and Programming Guide

# 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, OpenText 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-2024 Open Text
Version 24.4 | Last updated September 2024

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 MFI-swpdl.idoldocsfeedback@opentext.com.

We appreciate your feedback!

Product: IDOL Eduction 24.4

Topic Title: LuaEdkMatch:new