Jza Posted October 14, 2005 Report Share Posted October 14, 2005 hi I need help with regular expressions, I currently have a csv with names like this "Mr Joan XYZ" y have parsed the list so is "Mr", "Joan XYZ". What I need is a regular expression so it takes the space before Character so it can work as "Mr", "Joan", "XYZ" Quote Link to comment Share on other sites More sharing options...
neddie Posted October 14, 2005 Report Share Posted October 14, 2005 Don't quite understand, you just want to replace <space> with <comma><space> ? Or are you trying to parse the file lines into program variables, using maybe perl? java? sed? Quote Link to comment Share on other sites More sharing options...
Steve Scrimpshire Posted October 15, 2005 Report Share Posted October 15, 2005 how about /[ \t]*/,/ Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.