{"id":13439778,"url":"https://github.com/kkos/oniguruma","last_synced_at":"2025-04-23T17:13:28.576Z","repository":{"id":40313652,"uuid":"38999874","full_name":"kkos/oniguruma","owner":"kkos","description":"regular expression library","archived":false,"fork":false,"pushed_at":"2025-04-22T08:29:25.000Z","size":6210,"stargazers_count":2421,"open_issues_count":5,"forks_count":319,"subscribers_count":68,"default_branch":"master","last_synced_at":"2025-04-22T09:43:55.927Z","etag":null,"topics":["c","regexp","regular-expression"],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kkos.png","metadata":{"files":{"readme":"README","changelog":"ChangeLog","contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS","dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2015-07-13T08:19:17.000Z","updated_at":"2025-04-21T06:36:13.000Z","dependencies_parsed_at":"2023-10-04T19:59:49.701Z","dependency_job_id":"15aaf916-750a-4767-9884-03545440748d","html_url":"https://github.com/kkos/oniguruma","commit_stats":{"total_commits":3127,"total_committers":52,"mean_commits":60.13461538461539,"dds":0.3460185481291973,"last_synced_commit":"43a8c3f3daf263091f3a74019d4b32ebb6417093"},"previous_names":[],"tags_count":45,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kkos%2Foniguruma","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kkos%2Foniguruma/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kkos%2Foniguruma/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kkos%2Foniguruma/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kkos","download_url":"https://codeload.github.com/kkos/oniguruma/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250265403,"owners_count":21402093,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["c","regexp","regular-expression"],"created_at":"2024-07-31T03:01:17.017Z","updated_at":"2025-04-23T17:13:28.543Z","avatar_url":"https://github.com/kkos.png","language":"C","funding_links":[],"categories":["Regular Expression","C","Regex","正则表达式","Regex engines"],"sub_categories":["Advanced books","高级书籍","物理学","Source code"],"readme":"README  2018/04/05\n\nOniguruma  ----   (C) K.Kosako\n\nhttps://github.com/kkos/oniguruma\n\nFIXED Security Issues (in Oniguruma 6.3.0):\n  CVE-2017-9224, CVE-2017-9225, CVE-2017-9226\n  CVE-2017-9227, CVE-2017-9228, CVE-2017-9229\n\n---\nOniguruma is a modern and flexible regular expressions library. It\nencompasses features from different regular expression implementations\nthat traditionally exist in different languages. It comes close to\nbeing a complete superset of all regular expression features found\nin other regular expression implementations.\n\nIts features include:\n* Character encoding can be specified per regular expression object.\n* Several regular expression types are supported:\n  * POSIX\n  * Grep\n  * GNU Regex\n  * Perl\n  * Java\n  * Ruby\n  * Emacs\n\nSupported character encodings:\n\n  ASCII, UTF-8, UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE,\n  EUC-JP, EUC-TW, EUC-KR, EUC-CN,\n  Shift_JIS, Big5, GB18030, KOI8-R, CP1251,\n  ISO-8859-1, ISO-8859-2, ISO-8859-3, ISO-8859-4, ISO-8859-5,\n  ISO-8859-6, ISO-8859-7, ISO-8859-8, ISO-8859-9, ISO-8859-10,\n  ISO-8859-11, ISO-8859-13, ISO-8859-14, ISO-8859-15, ISO-8859-16\n\n* GB18030: contributed by KUBO Takehiro\n* CP1251:  contributed by Byte\n------------------------------------------------------------\n\nLicense\n\n   BSD license.\n\n\nInstall\n\n Case 1: Linux distribution packages\n\n   * Fedora:         dnf install oniguruma-devel\n   * RHEL/CentOS:    yum install oniguruma\n   * Debian/Ubuntu:  apt install libonig5\n   * Arch:           pacman -S oniguruma\n   * openSUSE:       zypper install oniguruma\n\n Case 2: Manual compilation on Linux, Unix, and Cygwin platform\n\n   1. autoreconf -vfi   (* case: configure script is not found.)\n\n   2. ./configure\n   3. make\n   4. make install\n\n   * uninstall\n\n     make uninstall\n\n   * configuration check\n\n     onig-config --cflags\n     onig-config --libs\n     onig-config --prefix\n     onig-config --exec-prefix\n\n\n\n Case 3: Windows 64/32bit platform (Visual Studio)\n\n   execute make_win64 or make_win32\n\n      src/onig_s.lib:  static link library\n      src/onig.dll:    dynamic link library\n\n  * test (ASCII/Shift_JIS)\n      1. cd src\n      2. copy ..\\windows\\testc.c .\n      3. nmake -f Makefile.windows ctest\n\n  (I have checked by Visual Studio Community 2015)\n\n\n\nRegular Expressions\n\n  See doc/RE (or doc/RE.ja for Japanese).\n\n\nUsage\n\n  Include oniguruma.h in your program. (Oniguruma API)\n  See doc/API for Oniguruma API.\n\n  If you want to disable UChar type (== unsigned char) definition\n  in oniguruma.h, define ONIG_ESCAPE_UCHAR_COLLISION and then\n  include oniguruma.h.\n\n  If you want to disable regex_t type definition in oniguruma.h,\n  define ONIG_ESCAPE_REGEX_T_COLLISION and then include oniguruma.h.\n\n  Example of the compiling/linking command line in Unix or Cygwin,\n  (prefix == /usr/local case)\n\n    cc sample.c -L/usr/local/lib -lonig\n\n\n  If you want to use static link library(onig_s.lib) in Win32,\n  add option -DONIG_EXTERN=extern to C compiler.\n\n\n\nSample Programs\n\n  sample/simple.c    example of the minimum (Oniguruma API)\n  sample/names.c     example of the named group callback.\n  sample/encode.c    example of some encodings.\n  sample/listcap.c   example of the capture history.\n  sample/posix.c     POSIX API sample.\n  sample/sql.c       example of the variable meta characters.\n                     (SQL-like pattern matching)\n  sample/user_property.c  example of user defined Unicode property.\n\nTest Programs\n  sample/syntax.c    Perl, Java and ASIS syntax test.\n  sample/crnl.c      --enable-crnl-as-line-terminator test\n\n\nSource Files\n\n  oniguruma.h        Oniguruma API header file. (public)\n  onig-config.in     configuration check program template.\n\n  regenc.h           character encodings framework header file.\n  regint.h           internal definitions\n  regparse.h         internal definitions for regparse.c and regcomp.c\n  regcomp.c          compiling and optimization functions\n  regenc.c           character encodings framework.\n  regerror.c         error message function\n  regext.c           extended API functions. (deluxe version API)\n  regexec.c          search and match functions\n  regparse.c         parsing functions.\n  regsyntax.c        pattern syntax functions and built-in syntax definitions.\n  regtrav.c          capture history tree data traverse functions.\n  regversion.c       version info function.\n  st.h               hash table functions header file\n  st.c               hash table functions\n\n  oniggnu.h          GNU regex API header file. (public)\n  reggnu.c           GNU regex API functions\n\n  onigposix.h        POSIX API header file. (public)\n  regposerr.c        POSIX error message function.\n  regposix.c         POSIX API functions.\n\n  mktable.c          character type table generator.\n  ascii.c            ASCII encoding.\n  euc_jp.c           EUC-JP encoding.\n  euc_tw.c           EUC-TW encoding.\n  euc_kr.c           EUC-KR, EUC-CN encoding.\n  sjis.c             Shift_JIS encoding.\n  big5.c             Big5      encoding.\n  gb18030.c          GB18030   encoding.\n  koi8.c             KOI8      encoding.\n  koi8_r.c           KOI8-R    encoding.\n  cp1251.c           CP1251    encoding.\n  iso8859_1.c        ISO-8859-1  encoding. (Latin-1)\n  iso8859_2.c        ISO-8859-2  encoding. (Latin-2)\n  iso8859_3.c        ISO-8859-3  encoding. (Latin-3)\n  iso8859_4.c        ISO-8859-4  encoding. (Latin-4)\n  iso8859_5.c        ISO-8859-5  encoding. (Cyrillic)\n  iso8859_6.c        ISO-8859-6  encoding. (Arabic)\n  iso8859_7.c        ISO-8859-7  encoding. (Greek)\n  iso8859_8.c        ISO-8859-8  encoding. (Hebrew)\n  iso8859_9.c        ISO-8859-9  encoding. (Latin-5 or Turkish)\n  iso8859_10.c       ISO-8859-10 encoding. (Latin-6 or Nordic)\n  iso8859_11.c       ISO-8859-11 encoding. (Thai)\n  iso8859_13.c       ISO-8859-13 encoding. (Latin-7 or Baltic Rim)\n  iso8859_14.c       ISO-8859-14 encoding. (Latin-8 or Celtic)\n  iso8859_15.c       ISO-8859-15 encoding. (Latin-9 or West European with Euro)\n  iso8859_16.c       ISO-8859-16 encoding.\n                     (Latin-10 or South-Eastern European with Euro)\n  utf8.c             UTF-8    encoding.\n  utf16_be.c         UTF-16BE encoding.\n  utf16_le.c         UTF-16LE encoding.\n  utf32_be.c         UTF-32BE encoding.\n  utf32_le.c         UTF-32LE encoding.\n  unicode.c          common codes of Unicode encoding.\n\n  win32/Makefile     Makefile for Win32 (VC++)\n  win32/config.h     config.h for Win32\n\n\nand I'm thankful to Akinori MUSHA.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkkos%2Foniguruma","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkkos%2Foniguruma","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkkos%2Foniguruma/lists"}