mysql-regexp

Regexp routines for mysql, implemented without UDF

  • Owner: almadomundo/mysql-regexp
  • Platform:
  • License:: GNU General Public License v2.0
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

mysql-regexp

Regexp routines for mysql, implemented without UDF

This functions have no guarantee and are NOT well-tested. Regex lookup is based on REGEXP operator for mysql, thus, all limitations (such as ci-collations) are applicable for them.

Tests

There is a Tests folder, which contains tests set for mysql-unit. Please, refer to it's documentation for more details.

Known issues

  • Impossible to use ^ or $ in expressions. No multiline support.
  • No support for negative/positive lookaheads/lookbehinds.
  • Anything else?

Complexity/Use cases

As it is, full string with length n reconstruction will cause O(n2) complexity. Yeas, that means, you'll have n2 REGEXP calls. So before using this, think twice. However, valid use-case may be to define some variable with this REGEXP_* functions, then use it in query.

Main metrics

Overview
Name With Owneralmadomundo/mysql-regexp
Primary LanguagePHP
Program languagePHP (Language Count: 1)
Platform
License:GNU General Public License v2.0
所有者活动
Created At2014-06-04 09:02:57
Pushed At2014-06-24 07:38:26
Last Commit At2014-06-24 11:37:15
Release Count0
用户参与
Stargazers Count6
Watchers Count1
Fork Count2
Commits Count15
Has Issues Enabled
Issues Count1
Issue Open Count1
Pull Requests Count0
Pull Requests Open Count0
Pull Requests Close Count0
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private