Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Synap Editor에서 정규식에 맞는 텍스트 정보를 가져 옵니다.



Parameters:

NameType
Attribute
Description
regexObject가져올 텍스트 정규식


Return:

TypeAttributeDescription
Array[
    { id: "paragraphId1", text: "+제1조(목적)" },
    { id: "paragraphId2", text: "+제2조(정의)" },
    ....
]
text가 위치한 paragraph id와 텍스트



Example:

Code Block
languagejs
themeEmacs
var textInfoList = editor.getTextByRegex(/\+제\d+조\([가-힣\s\d\w]+\)/g);

...