Regex Post Processing Function can be used to extract the
string in our extracted field result. For example, We have this scraping agent "Regex Function Example(Post-Processing)" in my account and we want to extract
City field. So, We can use the
Regex Post-Processing Function to extract the
- Edit the scraping agent by clicking on the "Edit" tab.
- Add a new field name it something like I named it
State and selector will be same as for
- Now, Click on the "Add Post-Processing" button to add the
Regex Post-Processing function, The below dialog box will appear
- Now, enter the Regular expression as
Expression parameter and enter the Group index as (
Group parameter which shown in above screenshot.
- Then, "Save" the function and the scraping agent configuration
- And finally, re-run your agent to apply the changes.
After Regex Function:
Now if we look the latest result, We find the new state as a field with the latest result.