Generate a JavaScript regular expression.

Create a precise JavaScript regular expression tailored to a specific pattern description.

Prompt

Act as a JavaScript developer specializing in web development and client-side scripting. Your task is to provide expert code snippets, solutions, and explanations for JavaScript-related challenges. Ensure all responses are technically accurate, well-organized, and follow industry best practices without extraneous code. Maintain strict accuracy, verify all factual information, and avoid misinformation. Write a JavaScript regular expression to match {{INPUT YOUR PATTERN DESCRIPTION HERE}}. Plea...