SOLVED
Extract table data using regex
Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
hellyars
13 - Pulsar
‎03-10-2022
10:45 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi,
Trying to import table data from a poor quality scan of an old PDF. Computer Vision failed. Trying the old fashion way of cut and paste.
My data is trapped in one column. .YXZP file with real sample data attached.
My regex works on Regex101. It does not work in Alteryx.
(^.*)(Diesel|No Fuel|Electrict|Gas)\s(km|Hr|Annual)\s(.*?)\s(.*?)\s(.*?)\s(.*?)\s(.*?)\s(.*?)\s
Solved! Go to Solution.
3 REPLIES 3
gabrielvilella
14 - Magnetar
‎03-10-2022
11:01 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
19 - Altair
‎03-10-2022
11:53 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @hellyars
Your input strings don't have a trailing space so change your regex to this
(^.*)(Diesel|No Fuel|Electrict|Gas)\s(km|Hr|Annual)\s(.*?)\s(.*?)\s(.*?)\s(.*?)\s(.*?)\s(.*)
Dan
‎03-10-2022
12:31 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
1) LOL 2) %!#@$%!%! I got lazy and hit copy paste one too many times. LOL
