Learning with Texts - Fork  2.10.0-fork
Learn foreign languages with texts
Namespaces | Functions
ajax_check_regexp.php File Reference

Check whether a regexp is valid, returns error message or empty string. More...

Namespaces

 Lwt
 

Functions

 check_mecab_accessibility ()
 
 check_standard_regex ($regex)
 
 do_ajax_check_regexp ($regex)
 

Detailed Description

Check whether a regexp is valid, returns error message or empty string.

Call: inc/ajax_check_regexp.php?.... ... regex=regular_expression

Function Documentation

◆ check_mecab_accessibility()

check_mecab_accessibility ( )

Check if mecab is installed and accessible under the 'mecab' alias.

Returns
void

◆ check_standard_regex()

check_standard_regex (   $regex)

Check if string 'test' is consistently recognized as a word.

Returns
void

◆ do_ajax_check_regexp()

do_ajax_check_regexp (   $regex)

Make the actual query to check the regex.

Parameters
string$regexRegex to test
Returns
void