skip to Main Content

JavaScript Regex match with no match

I have a RegEx ^(?:(?:3[0-9][0-9]{6,9})|(?:0[1-9][0-9]{6,9}))$ which works fine. But I want to add an excision of a specific number: (?!(?:315678901))$ This works fine on its own. But combining the two messes the expression up. Any ideas? I was using it…

VIEW QUESTION

Regex match two value from string php

Hi i am trying to match two value by regex two conditions, But not able to do. string is MorText "gets(183,);inc();" for="text">Sweet" Mo output trying is array [ 183, "Sweet" ] php regex code is preg_match_all('/gets((.*?),|>(.*?)"/', $string, $matches);

VIEW QUESTION
Back To Top
Search