Hello,
I am a newbie to regex and would like to a regex which will enable me to find specific number of blank spaces on a line.
I have UTF data in Hindi which has 2-3-4-5-6 words on the same line separated by blanks e.g.
a b
a b c
a b c d
a b c d e
where a,b,c,d,e and so on stand for words.
I would like to write a regex which could help me find say lines having only one space or two spaces or three spaces and so on.
I have gone through the regex queries and find nothing which meets my need. Any help would be welcome.
I tried a regex like
but I got weird results.
All help will be gratefully acknowledged,
Best regards,
Dictionary doctor
I am a newbie to regex and would like to a regex which will enable me to find specific number of blank spaces on a line.
I have UTF data in Hindi which has 2-3-4-5-6 words on the same line separated by blanks e.g.
a b
a b c
a b c d
a b c d e
where a,b,c,d,e and so on stand for words.
I would like to write a regex which could help me find say lines having only one space or two spaces or three spaces and so on.
I have gone through the regex queries and find nothing which meets my need. Any help would be welcome.
I tried a regex like
Code: Select all
. *
All help will be gratefully acknowledged,
Best regards,
Dictionary doctor