I'm opening up a file, giving everything in the file to the variable $content, and now what I want to do is delete everything before and after the instance of a string. For example, if my file contained:
blahblahblahblahblahblah+_john+_blahblahblahblahblahblah, I want to go through the file and substitute everything before and after the +_ with white space, so that $content would only consist of "john".
Is this something I can do with substitute?
In reply to Deleting everything before a string by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |