find all text before using regex

Posted by jeff on Stack Overflow See other posts from Stack Overflow or by jeff
Published on 2010-06-18T16:24:21Z Indexed on 2010/06/18 16:33 UTC
Read the original article Hit count: 179

Filed under:

How can I use regex to find all text before the text "All text before this line will be included"?

I have includes some sample text below for example

This can include deleting, updating, or adding records to your database, which would then be reflex.

All text before this line will be included

You can make this a bit more sophisticated by encrypting the random number and then verifying that it is still a number when it is decrypted. Alternatively, you can pass a value and a key instead.

© Stack Overflow or respective owner

Related posts about regex