RegExpr : Find and Replace last occurrence of a space(ASCII 20) in a line of text
Posted on 2009-07-02
Given the string:
"xxxxx x xxxxxxxxxx","nnnn xxxxxxxxxxxxxxx","xxxxxxx xx nnnnn/lf
I want to find and replace the last occurence of ' ' in the line of text with a ", to give me the following:
"xxxxx x xxxxxxxxxx","nnnn xxxxxxxxxxxxxxx","xxxxxxx xx "nnnnn/lf
This REGEX " ^*\s " finds the first space in line. I can not figure out a REGEX to find the last space in the line.
Any help would be appreciated.