Regex Post Processing Function

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 state from City field. So, We can use the Regex Post-Processing Function to extract the state from City field.






  1. Edit the scraping agent by clicking on the "Edit" tab.
  2. Add a new field name it something like I named it State and selector will be same as for City field
  3. Now, Click on the "Add Post-Processing" button to  add the Regex Post-Processing function, The below dialog box will appear

    dialog box

  4. Now, enter the  Regular expression as [^,]+,\s*(.*) in Expression parameter and enter the Group index as (1) in Group parameter which shown in above screenshot.
  5. Then, "Save" the function and the scraping agent configuration
  6. 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.