Community forum

Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


al355
  •  al355
  • No customer Topic Starter
2017-06-15T12:57:55Z
Hi,

I would like to retrieve the value from a string after a particular character. For example

abc=123

I want to return the 123 (anything after the =)

If I use substring I then need to use the string length which gets messy, is there any other way?

Thanks
Sponsor
Forum information
Jon Tofte-Hansen
2017-06-15T14:40:19Z
In VC 8.2.7 you can:

{STRING(GetColumn|1|2|=|abc=123)}
or
{REGEX(Match|abc=123|(?<==).+)}

The first will stop at any later "=". The second will not.
al355
  •  al355
  • No customer Topic Starter
2017-06-15T14:59:41Z
Gary_W
2017-06-15T18:34:04Z
Interesting alternatives Jon. My instinct would be to use:

{REGEX(Replace|abc=123|abc=(.*)|$1)}

To tighten up to match one or more decimals:

{REGEX(Replace|abc=123|abc=(\d+)|$1)}
Scroll to Top