Home > Backend Development > PHP Tutorial > 跪求剔除编号的正则表达式

跪求剔除编号的正则表达式

WBOY
Release: 2016-06-13 11:26:36
Original
993 people have browsed it

跪求删除编号的正则表达式
1、我们
11、我们
122、我们
1.他们
12.他们
133.他们
3 你们
33 你们
234 你们


诸如此类的有的是数字+顿号、有的是数字+点,有的是数字+空格,请问这个该如何用正则删除呢?
我只会最简单的

$c=preg_replace("/\d、/","",$yuanwen,-1);
Copy after login

这个只能删除掉个位数+顿号的
跪求大神帮忙

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template