View Single Post
 
Old 07-14-2015, 06:01 AM
vinci vinci is offline Mac OS X Office for Mac 2011
Novice
 
Join Date: Nov 2013
Location: Romania
Posts: 5
vinci is on a distinguished road
Default match any number of spaces after a paragaph (^p)

Hello,

I've been searching the internet to find out how I can use regular expressions to delete the spaces that start a line, using the ^p.

If I have a document with a random number of spaces at the beginning of some lines, I can't use both ^p and {1,} (with a space before {1,}), because ^p doesn't support the wildcard option. Of course, I wouldn't want to start matching the highest amount of spaces and then decrease it gradually. I'd like to match any number of spaces at the beginning of lines.

How could I do that?

Thank you!
Reply With Quote