Test, validate and match regular expressions
Validates a person's name on each line in multiline text, requiring it to start with an uppercase letter followed by 3 to 30 characters consisting of letters, spaces, commas, periods, apostrophes, backticks, or hyphens. Commonly used in JavaScript form validation for name input fields, accepting names like "John Smith", "Mary-Jane O'Brien", or "Robert Jr.". The global (g) and multiline (m) flags enable matching multiple names across separate lines in a single text block.