How can I valied my pattren based on REGLUR EXPRESSION – PHP
I have to check if CPR is valid so I have to check these things: CPR have 9 digit only The first 2 digits represent the birth year from 1980 to 2023 so going to take only the last two…
I have to check if CPR is valid so I have to check these things: CPR have 9 digit only The first 2 digits represent the birth year from 1980 to 2023 so going to take only the last two…
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…
I'm having some trouble matching/replacing the ZWSP unicode encoded as UTF8 ZWSP: x20x0B ZWSP (UTF8): xE2x80x8B As an extra test case I have used NBSP (Non-breaking space) which works as expected All preg_replace are in UTF8 mode /u When matching…
I'm using a regex that validates for an URL. The regex is: ^(https?|ftp)://[^\s/$.?#].[^\s]*$ The issue that I'm getting is that when I check for the validation in regex101. My test cases are getting validated but in my JS code it's…
I'm trying to do a password validation regex, it must ask for an upper case, a lower case, a special character, a number, and to not have any white spaces, so I implemented the following RegEx: /^(?=.*[0-9])(?=.*[A-Z])(?=.*[a-z])(?=.*[.!@#$%^&*])[^s][a-zA-Z0-9.!@#$%^&*][^s]{8,16}$/ But I need…
I'm trying to create a regex that matches 8 character words that contain at 3 least instances of a digit or the '%' symbol and whitespace after the word. The following strings should match: 'ab1d2f3h ' 'ab%d2f3h ' 'ab%d%f3h '…
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);
I have been trying to write regular expression which find a specific word at specific position in javascript adobe classification rule builder DI_NEO_OP_BRA_CRC_LRN_DIS_EP_NA_CON_UC_NA I want to get result as CON from above line in adobe classification rule builder code which…
I want regex to match either a-z or 0-9 characters of any length any order or exact string N/A. Matching and nonmatching examples are below: N/A - match asd6fg - match 123asd - match asd234 - match 12sd23 - match…
I'm trying to use a regex in javascript where special characters and leading and trailing spaces are not allowed in an input element. Maximum character length is 50. The regular expression I'm using is /^[a-zA-Z0-9]+([ ]?[a-zA-Z0-9]+)*$/ But this is causing…