---
title: "正则表达式--匹配不包含某一个字符串的方法"
author: "phpseyo"
date: "2013-09-27T19:38:57Z"
tags: []
categories: ["互联网"]
slug: "untitled"
draft: false
lastmod: "2013-09-27T19:38:57Z"
id: 1948410
url: "https://phpseyo.iteye.com/blog/1948410"
---

如下图 (((?!\\.htm).)\*) 为匹配不包含 .htm 为内容的字符串

![](http://dl2.iteye.com/upload/attachment/0089/7441/83c677c3-5115-3e59-aee0-237fc7b9c323.png)