i wrote it this way "[^']{1,10}" and it worked fine.

thank you for your support.