回复 12楼 csyx
VFP has a regex engine, but it is not built into the language itself. However, it is possible to use third-party regex engines in VFP through install of plugins or libraries.
Some regex engines available for VFP:
1.PostgreSQL - psycopg2 - psycopg2 extension library provides regex support for PostgreSQL.
2.MySQL - MySQL Connector/NET - MySQL Connector/NET extension library provides regex support for MySQL.
3.Oracle - Oracle Regular Expressions - Oracle extension library provides regex support for Oracle database.
4.Microsoft SQL Server - SQL Server XML DB Connector - SQL Server XML DB Connector extension library provides regex support for Microsoft SQL Server.
5.PostgreSQL 8.2 or later (child theme) with features such as GLV, regex support - the postgresql extension for .NET allows using regular expressions with the psycopg2 PostgreSQL driver.
6.MySQL 5.7.5 or later (child theme) with features such as GLV, regex support - mysql-connector-net/mysql-8.0-era has regex support.
When installing and using these regex engines, make sure to correctly configure the corresponding database connections and regex expression rules.
VFP是一个用于数据库开发的商业级编程语言和开发环境,它本身并没有内置正则引擎。但是,VFP可以通过安装第三方插件或库来利用正则引擎进行字符串处理。
以下是一些可以在VFP中使用的正则引擎:
1. PostgreSQL - psycopg2 - psycopg2扩展库提供了对 PostgreSQL 的正则引擎支持。
2.MySQL - MySQL Connector/NET - MySQL Connector/NET 扩展库提供了对 MySQL 的正则引擎支持。
3.Oracle - Oracle Regular Expressions - Oracle 的 Oracle Regular Expressions 扩展库提供了对 Oracle 数据库的正则引擎支持。
4.Microsoft SQL Server - SQL Server XML DB Connector - SQL Server XML DB Connector 扩展库提供了对 Microsoft SQL Server 的正则引擎支持。
5.PostgreSQL 8.2 or later (child theme), supporting features such as GLV、regex等- the postgresql extension for .NET allows using regular expressions with the psycopg2 PostgreSQL driver.
6.MySQL 5.7.5 or later (child theme), supporting features such as GLV, regex等- mysql-connector-net/mysql-8.0-era has regex support.
在安装和使用这些正则引擎时,需要确保已经正确地配置了相应的数据库连接和正则表达式规则。