0

Visually same character but regex does not work?

Problem:

it might happen sometimes that visually one character appears to the same but for some reason regular expression designed to exclude it from your file does not work.

Solution:

Try to copy & paste the symbol into https://unicode-table.com and check if the characters are really the same.

Perfect example is minus sign which sometimes might have code 00AD whereas other time it might be 002D.

 

0 comments

Please sign in to leave a comment.