Hi i am new to regex, tried to write regex to match copyright statement in a file. There are many patterns of copyright statements which should be matched and whatever gets matched should also be validated for correctness. Please check the below one:
https://regex101.com/r/ROWq73/1
(?:©(?:\s*Copyright)?|Copyright(?:\s*©)|(C)(?:\s*Copyright)|Copyright(?:\s*(C))?)|\s*\d+(?:\s*-\s*\d+)?\s*(.?(?:\W*All\s+rights\s+reserved)|[^.\n](?=.)|.*)|([a-zA-Z0-9-.]+@[a-zA-Z0-9-.]+)
I just need everything to be identified whatever way the copyright statement is along with mail id or company URL.
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)