---
title: "一个正则表达式的写法"
author: "irican"
date: "2010-02-11T22:10:40Z"
tags: []
categories: ["编程语言"]
slug: "untitled"
draft: false
lastmod: "2010-02-11T22:10:40Z"
id: 593372
url: "https://irican.iteye.com/blog/593372"
---

需要在文件中找到包含类似Name="some words/some other words"， 但又不是Name="PL/SQL"的字符串。

这时使用的正则表达式为：(?!Name="PL/SQL")Name="\[^\\"]\*/\[^\\"]\*"， 验证成功。