I’m trying to use regular expression in Notepad++ to change spaces to tabs in something like this
01 fsdfsd
01 01 fsdfsd
01 01* fsdfsd
01 01 01 fsdfsd
01 01 01* fsdfsd
How can I keep spaces between numbers and change only the last space?
Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Search for:
(Note that there is a space in front of the character class.) And replace with:
An alternative that might be better suited if you also have lines that are of a different format, or if
fsdfsdmay contain spaces, is this:Now replace with
This matches any space after the longest possible string of digits with optional asterisks separated by spaces.