---
title: "Discussion on \"Regex for finding text which is not preceded by another piece of text\" | Hashnode"
description: "Discussion on \"Regex for finding text which is not preceded by another piece of text\". How to use a negative lookbehind in regex"
url: "https://hashnode.com/posts/regex-for-finding-text-which-is-not-preceded-by-another-piece-of-text/622a15bce552e99d82e58bf9"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Regex for finding text which is not preceded by another piece of text](https://techblog.timhilton.xyz/regex-for-finding-text-which-is-not-preceded-by-another-piece-of-text?utm_source=hashnode&utm_medium=feed)

How to use a negative lookbehind in regex

Mar 10, 2022 · 1 min read · techblog.timhilton.xyz  
Updated Apr 7, 2022  
Read the article

-   [#regex](https://hashnode.com/tag/regex)
-   [#csharp](https://hashnode.com/tag/csharp)
-   [#string](https://hashnode.com/tag/string)

## Written by

[Tim Hilton](https://hashnode.com/@tjhilton)

@tjhilton

  
[View profile](https://hashnode.com/@tjhilton)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
