View Single Post
Old 10-15-2022, 09:12 AM   #6
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,529
Karma: 8075938
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by un_pogaz View Post
{50} alone work only for a text with an exact length of 50 character
for >=50 use {50,}
for <=50 use {,50}
No it doesn't. It works if the text is 50 *or more* because there isn't an trailing anchor ($) on the expression. Finding 50 characters doesn't rule out there being 51.

This screen capture shows it working using the expression '^.{5}'
Attached Thumbnails
Click image for larger version

Name:	Clipboard01.png
Views:	498
Size:	25.9 KB
ID:	197173  
chaley is offline   Reply With Quote