Different results between regex101 and java code

I have this regex: https://regex101.com/r/vxHtzh/1 I have four matches. But with my simple java code I have different output. Pattern pattern = Pattern.compile("'([0-9a-zA-Z-[^\\x00-\\x7F]+ ]+(‘,’)*)’",Pattern.MULTILINE); String line = "( $th$.t == ‘Vision’e’ ) || ( $g$.rfd == ‘servizio visione ù è al estero’ ) || ( $b$.fg == ‘città diversa nazionalita” ) || ( $mh$.fgh !=… Read More Different results between regex101 and java code

Create array of regex matches javascript

I want to create an array of matches for my regex expression in javascript. It should look like: [‘<:S_egirl:1023714296590499882>’, ‘<a:eee:1023672889490284606>’] However, my code currently only makes an array with 1 item which includes all the matches. The expression is: /<:.+:(\d+)>/gm And my code is const parsed_emotes = [].concat(emotes.match(/<:.+:(\d+)>/gm)); console.log(parsed_emotes); I’ve been stuck on this for… Read More Create array of regex matches javascript

FutureWarning: Possible nested set at position 1 Error Python

I was working on something and at some point, I needed to check whether the string satisfies this: The string must contain at least 5 words and each separated by a hyphen(-) or an underscore(_). Here is the code that I wrote: password=eval(input(‘Password:’)) pattern=r'[[\w][-_]]{5,}’ import re re.fullmatch(pattern,password) But it gives ‘ ipython-input-32-7c87b09218f8>:4: FutureWarning: Possible nested… Read More FutureWarning: Possible nested set at position 1 Error Python

Problem with Regex password verification with default android keyboard layouts such as Japanese and Russian keyboards

I used Regex to verify a password with a minimum of 8 characters containing 1 uppercase, 1 lowercase, 1 special character, and 1 numeric value. The problem I encountered is that if people from Russia or any other country whose language is different from English try to enter the password using the default keyboard, it… Read More Problem with Regex password verification with default android keyboard layouts such as Japanese and Russian keyboards

Regex for the number that should not start with some specific two digit numbers

I am trying to build a regex for following rules No characters – only numbers are allowed to enter Numbers must contain not less than 8 digits Numbers and combinations, starting as follows should not be allowed: [3.1] – Any number starting with 0 (zero) and with 1 (one); [3.2] – Numbers starting with 20,… Read More Regex for the number that should not start with some specific two digit numbers