View Single Post
Old 12-27-2014, 07:21 AM   #11
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,756
Karma: 24032915
Join Date: Dec 2010
Device: Kindle PW2
@odeta: For a short Regex summary, see this site. BTW, there are slightly different Regex flavors; Sigil uses PCRE (=Perl-compatible regular Expressions.)

Quote:
Originally Posted by odedta View Post
This \s{1,} method worked well.
Could you explain the different parts of the that expression?
\s = any whitespace character
{1,} = number of preceding characters to be found (in this case at least one)
\n = line-break
\r = carriage-return

I used the + operator, because it's shorthand for {1,}.
Doitsu is offline   Reply With Quote