DEV Community

Discussion on: Help me with the code, most of the test cases passed but when a negative number encounter it return its positive value.

Collapse
 
strangelestrade profile image
SHivam Sinha

Yes as a beginner I am learning the stuff.

Collapse
 
jrogers8835 profile image
jrogers8835

See my other comment for guidance. If you can't figure it out after a few hours of playing with regex, message me and I'll send you the pattern.