Skip to content
Advertisement

Tag: false-positive

Unit Testing regex to check for False Positives

so I have a Regex expression that I’m matching against a single string provided to check and match certain information. If it’s matched, only the captured group is returned. I have made my function so that it removes any null strings from the returned array and finally, just gives the captured string as the output. This works great in unit

Advertisement