Is it possible to delete everything from a file between two points, if I'm not entirely certain what that text will be?
For example, if my file looks like this:
[INDENT]Hello World!
Leet (or 1337, l33t, l33+, etc, derived from the word "Elite") is a linguistic phenomenon associated with the underground culture centered on telecommunications, manifested primarily on the Internet, and is especially prevalent in gaming (as in video games) communities. For the purposes of this text, leet is defined as the corruption or modification of written text. For example, the term "leet" itself is often written "l33t" or "1337". Such corruptions are frequently referred to as "Leetspeak" or "13375p34k," etc. (see below for cipher definitions). In addition to corruption of standard language, new colloquialisms have been added to the parlance. It is also important to note that Leet itself is not solely based upon one language or character set. In fact, Greek, Russian, Chinese, and other languages have been subjected to the Leet "cipher". As such, while it may be referred to as a "cipher", a "dialect", or a "language", Leet does not fit squarely into any of these categories. This article primarily concerns the English Language variant of Leet.
Goodbye World![/INDENT]
Can I delete everything between "Hello World" and "Goodbye World"? Note that the contents may change, so I don't think I can simply use str_replace or something like that.