Category : logic

Hello i have regex like this ^[d]{4,5}([;]d{4,5})*$|(^[d]{4,4}([:]d{4,5})$)|^[d]{4,5}(s[;]sd{4,5})*$|(^[d]{4,4}(s[:]sd{4,5})$) I need effect like this: 12345 : 12345 – allowed 12345 : 1234 – not allowed 12345 : 12344 – not allowed 1234 : 1235 – allowed 1234 : 12345 – allowed Generally – left <= right Rest can be stay Someone know how to resolve this problem? ..

Read more

I made a random password generator app and I want to show the last three generated passwords on a View: function generatePass() { let pass = ” for(let i = 0,n = charset.length; i < size; i++) { pass += charset.charAt(Math.floor(Math.random() * n)) } setPassword(pass); — <View style={styles.area}> <Text style={styles.lastPasswordsTitle}>Last generated passwords</Text> <Text style={styles.lastPasswords}>Pass1</Text> <Text ..

Read more