Regex Tokenize
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi,
I would like to do regex for the below data to get them into 6 columns. Can anyone help...
Example the out put should be
For Mahesh w/h leg will be in one column date in one column and four amounts in the other 4 columns.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @moinshaik,
Can you provide the data in the native format (likely .txt)? The RegEx formula will depend on if the blank spaces are tabs or spaces.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
The sample data is in excel . each line of data is in one cell..... Its actually a data converted from pdf....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @moinshaik,
Thanks for the sample data. As long as your data stays in this format this should work. It might need some adjustment on the full data set, so be sure to test. I used RegEx parse instead of tokenize to get all the fields in one step and name them appropriately. I added some cleansing at the end to get the amounts into numeric format. If you just need it separated, then you don't need the last Multi-Field Formula tool, which trims off the leading dollar signs, changes brackets to negative numbers, and converts it to numeric format.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Thank you so much!! You are awesome.... Regex is one tool which I am in love with now.. Need to learn it as soon as possible.......
