Programming 360’s Post

View organization page for Programming 360, graphic

244 followers

#Regex #Programming #JavaScript #CSharp #DatabaseSearch Hey everyone! 🤔 I’m currently working on a project for a client that requires searching a database using Regular Expressions (Regex). Here’s the setup: **Frontend**: We're using JavaScript to send the Regex to the backend. **Backend**: Built with C#, and it's responsible for interacting with the database. **Validation**: The client wants us to validate the Regex on both the frontend and backend before making requests. Here’s where things get tricky. 🔍 I’ve encountered an issue where JavaScript considers a Regex like `[]` to be valid, but C# throws an error saying, "ERROR REGEX NOT VALID." I’ve tried searching online for solutions, but not much has come up, and I'm feeling a bit overwhelmed since I'm not deeply familiar with Regex. Also, JavaScript seems to accept some pretty strange Regex like ``, which honestly leaves me scratching my head. 😅 So here’s my question for you all: **Do Regex rules actually diffe... Why Do Regex Rules Differ Across JavaScript and C# Languages? Answers: https://lnkd.in/gK9sBuhc

To view or add a comment, sign in

Explore topics