Thanks you for support. Regex is a quite tricky, however if there is no other way, regex is only solution.
[[:space:]]+ There is one small issue with this: it also removes space between </p> and <p> when paragraphs begins from new line, i.e. <p> first line text </p> <p> second line text </p> so paragraphs merge in one line: <p> first line text </p> <p> second line text </p> The same for headers and paragraphs: <h1> text </h2> <p> text </p> becomes <h1> text </h2> <p> text </p> How to avoid this? Best Regards, Alex > Sent: Friday, August 05, 2016 at 3:12 PM > From: "Colomban Wendling" <[email protected]> > To: "Geany general discussion list" <[email protected]> > Subject: Re: [Geany-Users] Remove Extra Whitespace from text > > Le 05/08/2016 à 14:10, Vesta a écrit : > > Text have multiple whitespaces between words within <p> </p> and <h2><h2> > > tags. > > > > How to find multiple whitespaces and replace them with a single whitespace? > > learn regexes? :) For basic stuff like that it isn't so complex, and > very powerful. Though, here you could also do it just replacing two > spaces with one until there's no more to replace. > > Regards, > Colomban > > PS: [[:space:]]+ > _______________________________________________ > Users mailing list > [email protected] > https://lists.geany.org/cgi-bin/mailman/listinfo/users > _______________________________________________ Users mailing list [email protected] https://lists.geany.org/cgi-bin/mailman/listinfo/users
