pgpcre
Perl Compatible Regular Expression functions
pgpcre : Perl Compatible Regular Expression functions
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 4230 | pgpcre | pgpcre | 0.20190509 |
UTIL | PostgreSQL | C |
| Attribute | Has Binary | Has Library | Need Load | Has DDL | Relocatable | Trusted |
|---|---|---|---|---|---|---|
| --s-d-r | No | Yes | No | Yes | yes | no |
| Relationships | |
|---|---|
| See Also | pg_trgm re2 omni_regex pg_similarity fuzzystrmatch smlar biscuit pg_bigm |
Packages
| Type | Repo | Version | PG Major Compatibility | Package Pattern | Dependencies |
|---|---|---|---|---|---|
| EXT | MIXED | 0.20190509 |
18 17 16 15 14 | pgpcre |
- |
| RPM | PIGSTY | 0.20190509 |
18 17 16 15 14 | pgpcre_$v |
- |
| DEB | PGDG | 0.20190509 |
18 17 16 15 14 | postgresql-$v-pgpcre |
- |
| Linux / PG | PG18 | PG17 | PG16 | PG15 | PG14 |
|---|---|---|---|---|---|
| el8.x86_64 | PGDG 0.20190509 | PIGSTY 0.20190509 | PIGSTY 0.20190509 | PIGSTY 0.20190509 | PIGSTY 0.20190509 |
| el8.aarch64 | PGDG 0.20190509 | PIGSTY 0.20190509 | PIGSTY 0.20190509 | PIGSTY 0.20190509 | PIGSTY 0.20190509 |
| el9.x86_64 | PGDG 0.20190509 | PGDG 0.20190509 | PGDG 0.20190509 | PGDG 0.20190509 | PGDG 0.20190509 |
| el9.aarch64 | PGDG 0.20190509 | PGDG 0.20190509 | PGDG 0.20190509 | PGDG 0.20190509 | PGDG 0.20190509 |
| el10.x86_64 | PGDG 0.20190509 | PGDG 0.20190509 | PGDG 0.20190509 | PGDG 0.20190509 | PGDG 0.20190509 |
| el10.aarch64 | PGDG 0.20190509 | PGDG 0.20190509 | PGDG 0.20190509 | PGDG 0.20190509 | PGDG 0.20190509 |
| d12.x86_64 | PGDG 0.20190509 | PGDG 0.20190509 | PGDG 0.20190509 | PGDG 0.20190509 | PGDG 0.20190509 |
| d12.aarch64 | PGDG 0.20190509 | PGDG 0.20190509 | PGDG 0.20190509 | PGDG 0.20190509 | PGDG 0.20190509 |
| d13.x86_64 | PGDG 0.20190509 | PGDG 0.20190509 | PGDG 0.20190509 | PGDG 0.20190509 | PGDG 0.20190509 |
| d13.aarch64 | PGDG 0.20190509 | PGDG 0.20190509 | PGDG 0.20190509 | PGDG 0.20190509 | PGDG 0.20190509 |
| u22.x86_64 | PGDG 0.20190509 | PGDG 0.20190509 | PGDG 0.20190509 | PGDG 0.20190509 | PGDG 0.20190509 |
| u22.aarch64 | PGDG 0.20190509 | PGDG 0.20190509 | PGDG 0.20190509 | PGDG 0.20190509 | PGDG 0.20190509 |
| u24.x86_64 | PGDG 0.20190509 | PGDG 0.20190509 | PGDG 0.20190509 | PGDG 0.20190509 | PGDG 0.20190509 |
| u24.aarch64 | PGDG 0.20190509 | PGDG 0.20190509 | PGDG 0.20190509 | PGDG 0.20190509 | PGDG 0.20190509 |
| u26.x86_64 | PGDG 0.20190509 | PGDG 0.20190509 | PGDG 0.20190509 | PGDG 0.20190509 | PGDG 0.20190509 |
| u26.aarch64 | PGDG 0.20190509 | PGDG 0.20190509 | PGDG 0.20190509 | PGDG 0.20190509 | PGDG 0.20190509 |
Source
github.com/petere/pgpcre
pgpcre-0.20190509.tar.gz
Install
Make sure PGDG and PIGSTY repo available:
Install this extension with pig:
Create this extension with:
Usage
pgpcre: Perl-compatible regular expressions (PCRE) for PostgreSQL
Provides a pcre data type and operators/functions for PCRE pattern matching.
Basic Matching
Reverse operand order:
Case-Insensitive Matching
Extract Matched String
Extract Captured Substrings
Storing Regular Expressions
The pcre type can be stored in table columns. The binary form contains the compiled regex, tied to the PCRE library version. After a PCRE library upgrade, recompile stored values: