Relative Content

Tag Archive for regexregex-lookaroundsregex-group

Regex mask last 4 numbers

R.replace(/[0-9](?!([0-9]{4}))/g,’*’,’123456789′); yields 12345**** want to input 123-45-6789 and yield 123-45-**** Currently based on above it yields ***-**-**** No idea why. I am using rambda js to simulate. http://ramdajs.com/docs/#replace need help to construct the regex for that . Any help is appreciated regex regex-lookarounds regex-group 3 Your current regex matches any digit that doesn’t have four […]

Unable to print 2nd occurrence from rates [duplicate]

This question already has answers here: Match 2nd occurrence with regex (1 answer) RegEx: Match second occurrence of character set in in quotes (3 answers) Get the second match by regex (4 answers) Closed 15 mins ago. My sample text is pretty simple $56K – $86K (glass My regex is [0-9]+K which prints both 56K […]