User:Nixeagle/Regex/1

Just a reference to some of my regex statements. Feel free to steal or improve on! If you improve them please tell me!!!

NovelFilm Splits
\b(based\son).*?\b(novel(s)?|book(s)?)|\b(novel(s)?|book(s)?).*\s\w*\s*\bby


 * This regex statement looks for "based on" followed by any number of words or spaces, but to match it must also have either "novel" or "novels" or "book" or "books".
 * If the first part is not found, then the statement looks for any occurance of the words "book" "books" "novel" "novels", followed by any number of words or spaces, but to match it must also have the word "by".
 * example:"the script was made from the book, XX, written by YY"