Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to exclude/remove text within an import.io field extract automatically

I'm using regex within import.io to only match fields when they start with a certain string which works correctly. So for example i use the following to match items that start with 'testing testing ': ^(testing\stesting\s.+

It there any way to have it return the value excluding this string (presumably using xpath in addition to regex?) So if the field value is "testing testing 1234" then i would want it to just return "1234" without the "testing testing" at the front?

Obviously I can do this manually afterwards but want to try and find a way of doing it automatically as part of the export?

Thanks,

Dave

like image 452
deshg Avatar asked Nov 21 '25 21:11

deshg


1 Answers

You could use (?:\d+) this would get all the digits within a capturing group. I usually use http://regexr.com/ to build regex, it offers great cheatsheets and reference material.

like image 104
Meg Ainsley Avatar answered Nov 23 '25 12:11

Meg Ainsley



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!