You need to sign in to do that
Don't have an account?
Michael M
Help with parsing string
Hello, I was wondering if someone can help me write the apex to parse a string like this (changed the details of it, but the concept is still what I need):
https://abc-park-store.facilities.facilities.org/contact-form-block/
From that string, I only want everything between "https://" and ".facilities...". Also, I want to replace the "-" with spaces, and capitalize each word. So from the above string, I would want it to say "Abc Park Store". How can I parse the string as such? Thank you.
https://abc-park-store.facilities.facilities.org/contact-form-block/
From that string, I only want everything between "https://" and ".facilities...". Also, I want to replace the "-" with spaces, and capitalize each word. So from the above string, I would want it to say "Abc Park Store". How can I parse the string as such? Thank you.
Verified in my org. The following code gives the output you are looking for
I referred to the methods available in the string class
Let me know if it helps
Anudeep
All Answers
Verified in my org. The following code gives the output you are looking for
I referred to the methods available in the string class
Let me know if it helps
Anudeep