【发布时间】:2018-05-28 16:58:57
【问题描述】:
从下面的代码中,我只需要提取括号中的内容,而不使用这些。
create table if not exists `va_lottery`.`iso_4217`
(
ccodealpha char(3) not null comment 'ISO alpha.',
ccodenumeric char(3) not null comment 'ISO numeric',
cminorunit varchar(4) default 0 comment 'Minor unit.',
cname varchar(80) not null comment 'Name of the currency.',
centity varchar(100) not null comment 'Entity.'
)
engine=innodb comment='ISO codes of coins.';
也就是说。只提取以下代码行。
ccodealpha char(3) not null comment 'ISO alpha.',
ccodenumeric char(3) not null comment 'ISO numeric',
cminorunit varchar(4) default 0 comment 'Minor unit.',
cname varchar(80) not null comment 'Name of the currency.',
centity varchar(100) not null comment 'Entity.'
感谢您给予我的帮助。
【问题讨论】:
-
正是我需要的,非常感谢。
-
太好了,我已将其移至答案。请接受足够的测试。
标签: php regex regex-lookarounds regex-group