Perl Pattern
Posted: Fri Mar 05, 2004 5:48 am
I'm making this much harder than it should be...
I have one file, with multiple lines such as:
2800 Western Parkway, Ronald J. Prater and Gary M. and Margaret Boswell to Hugh P. and Jennifer Bosley for $118,000.
423 Tampa Drive, Kevin D. and Tabitha Hooker to Angela Baird for $67,000.
5035 Graham Lane, Helen L. Tipton to Charles L. Lamar for $47,550.
I need to convert this to:
"118000","Hugh P. and Jennifer Bosley","2800 Western Parkway"
"67000","Angela Baird","423 Tampa Drive"
"47550","Charles L. Lamar","5035 Graham Lane"
I plan to import that converted infomation into Excel.
I'm using TextPipe Standard and here's what I have so far (that isn't working)...
(\d+.*)(,)(\w+.*to)(\w+.*)(for)(\$\d)
I'm certainly open to suggestions as I've been working on this for awhile and I know I'm making it hard than it should be.
Thanks in advance for any insight.
Roger
I have one file, with multiple lines such as:
2800 Western Parkway, Ronald J. Prater and Gary M. and Margaret Boswell to Hugh P. and Jennifer Bosley for $118,000.
423 Tampa Drive, Kevin D. and Tabitha Hooker to Angela Baird for $67,000.
5035 Graham Lane, Helen L. Tipton to Charles L. Lamar for $47,550.
I need to convert this to:
"118000","Hugh P. and Jennifer Bosley","2800 Western Parkway"
"67000","Angela Baird","423 Tampa Drive"
"47550","Charles L. Lamar","5035 Graham Lane"
I plan to import that converted infomation into Excel.
I'm using TextPipe Standard and here's what I have so far (that isn't working)...
(\d+.*)(,)(\w+.*to)(\w+.*)(for)(\$\d)
I'm certainly open to suggestions as I've been working on this for awhile and I know I'm making it hard than it should be.
Thanks in advance for any insight.
Roger