Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Big Data Hadoop
  3. Question
Big Data Hadoop

SUBSTR alternate in apex

Asked by Amy Avery Jul 12, 2021 1.5K views 1 answer
Share

About this question

JS:

var str = "SLA-UPsdfdsfdsfG-4HR-4ON"; var res = str.substr(-7, 3);

Output: 4HR

What is the alternative for Substr in apex which is starting from end due to minus starting index.

Your answer

1 Answer

More Big Data Hadoop discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Big Data Hadoop Blogs

Guides, tips and career advice on Big Data Hadoop from JanBask experts.