Status | ||||||
---|---|---|---|---|---|---|
|
Synap Editor에서 정규식에 맞는 텍스트 정보를 가져 옵니다Load the text information that corresponds with the given regular expression from Synap Editor.
Parameters:
Name | Type | Description |
---|---|---|
regex | Object | 가져올 텍스트 정규식Regular expression for the text to load |
Return:
Type | Attribute | Description |
---|---|---|
Array | [ { id: "paragraphId1", text: "+제1조Article 1 (목적Purpose)" }, { id: "paragraphId2", text: "+제2조Article 2 (정의Definition)" }, .... ] | text가 위치한 paragraph id와 텍스트paragraph id of the paragraph in which the text is located and the text |
Example:
Code Block | ||||
---|---|---|---|---|
| ||||
var textInfoList = editor.getTextByRegex(/\+제\d+조\([가-힣\s\d\w]+\)/g); |
...