"REPLACED MB & LCD BACK COVER,DMI, UPDATED BIOS."
What I want to do is use RegExReplace() to add a space after the commas to give me this result:
"REPLACED MB & LCD BACK COVER, DMI, UPDATED BIOS."
Pretty simple result, right? Well, nothing I've tried has worked:
Code: Select all
Newclip = REPLACED MB & LCD BACK COVER,DMI, UPDATED BIOS.
Newclip := RegExReplace(Newclip, ",[^,\w]", ", ")
; The above does nothing.
Newclip := RegExReplace(Newclip, ",[^,\w]", ", \w")
; The above does nothing.
Newclip := RegExReplace(Newclip, ",[^,\w", ", \w")
; The above removes everything.
Newclip := RegExReplace(Newclip, ",\w", ", \w")
; The above gives "REPLACED MB & LCD BACK COVER, \wMI, UPDATED BIOS."
Newclip := RegExReplace(Newclip, ",\w", ", ")
; The above gives "REPLACED MB & LCD BACK COVER, MI, UPDATED BIOS."
Newclip := RegExReplace(Newclip, ",", ", ")
; The above gives "REPLACED MB & LCD BACK COVER, DMI, UPDATED BIOS."
Why oh WHY does this have to be so hard?!! Please help me learn RegEx!
Thanks in advance, Beetle.