Xpath 1st elment 2nd element 3rd element

Comments

1 comment

  • tatgift

    2 step process

    1. Define field xpath:
    /descendant-or-self::h1[@class="name"]
    2.Then add cleaning rules to match regex for the part of the name you want.
    You can use the regex builder to define starting character and end character. So the first part of the name might be \w (for a word character) tick include starting character, and the end character enter a space.

    Should pick up Ankit

    Repeat in second column for the other part of the name.
    You can use the same rule, this time including the end character, but with a regex replace leaving the replace field blank and you should be left with the last part of the name.

    Note: the regex builder adds an unnecessary \ to the built expression when using regex metacharacters. Just delete one of them.
    For more help with regex expressions check out:
    https://www.w3schools.com/jsref/jsref_obj_regexp.asp

    0
    Comment actions Permalink

Please sign in to leave a comment.