Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Does Javascript support conditional if/then regular expressions?

0
10 Posted

Does Javascript support conditional if/then regular expressions?

0
10

I’ve been trying to find an article about this, but all my searches were futile. I usually try to not bog Fluther down with questions if I can find the answer by searching, but this is a rare case. Anyway, I want to know because I’ve been trying to write a regular expression with an if/then/else conditional in it, and Javascript is throwing errors at me left and right. I’m not sure if I’m just doing it wrong or if Javascript doesn’t support if/thens in regular expressions. Any help would be appreciated.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.