Page 1 of 1

How to extract a portion of text from a Web page.

Posted: Fri Nov 01, 2019 1:04 am
by Pratapa
Hi,

How to extract a portion of text from a Web page.

If we can extract using grep command, please let me know the syntax.

Regards,
Pratapa

Re: How to extract a portion of text from a Web page.

Posted: Fri Nov 01, 2019 11:19 am
by scottwilkerson
Are you looking to check for existence of a certain string?

this can be done with check_http with either a string match

Code: Select all

 -s, --string=STRING
    String to expect in the content
or a regex match

Code: Select all

 -r, --regex, --ereg=STRING
    Search page for regex STRING