Regex to delete all leading whitespace? Need Regex Guru Help

mark leenheer

Client
Регистрация
29.01.2012
Сообщения
156
Благодарностей
6
Баллы
0
^[ \t]+

Using above but it only matches the very first instance.

I want to delete all leading white space in a block of text.

Anyone know how I can do that?
 
Регистрация
01.02.2011
Сообщения
99
Благодарностей
15
Баллы
0
How about you regex what you want & by doing so, the white space is deleted.
 

mark leenheer

Client
Регистрация
29.01.2012
Сообщения
156
Благодарностей
6
Баллы
0
I got some help and got it working by doing one line at a time, looping and writing to a file.

But I am always keen to learn...
I'm still learning regex, if you think that would work, how about an example?

I have thousands of lines of varying length and content.
Some have leading white space, some don't.
 

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)