Ephraim Malane · Oct 6, 2022

How to find and extract a substring from a string

I have a string below and I want to read the  value of the first href with ObjectScript

Product version: IRIS 2020.2
0 134
Discussion (2)1
Log in or sign up to continue

Use this link as a starting point and consider using either $FIND() or $LOCATE() to narrow down the string you're looking for and then use $EXTRACT() to extract the href value. By the way, it's enough a short example string, posting nearly the whole page is an overkill and wasting space.

Set href=$Piece($Piece(String,"href=""",2),"""",1)