2 Replies - 287 Views - Last Post: 09 July 2019 - 12:41 AM Rate Topic: -----

#1 RushabhVerma   User is offline

  • New D.I.C Head

Reputation: -2
  • View blog
  • Posts: 13
  • Joined: 23-April 19

Get Value from Right with first white space

Posted 08 July 2019 - 10:05 PM

I Want To Achieve the Value of first whitespace value from the right of random string as below.

if my
1. string = "sdsd sdsd sdsd 3232323"
or
2. string = "sdsd sdsd dseee3232323"
or
3.string = "sdsd dseee3232323"
or
4.string = "sdsd dseee3232323"

output :
1. 3232323
2. dseee3232323
3. dseee3232323
4. dseee3232323
Is This A Good Question/Topic? 0
  • +

Replies To: Get Value from Right with first white space

#2 Skydiver   User is online

  • Code herder
  • member icon

Reputation: 7056
  • View blog
  • Posts: 23,989
  • Joined: 05-May 12

Re: Get Value from Right with first white space

Posted 08 July 2019 - 10:52 PM

As usual, cross-posted in StackOverflow. And he changed his name to "Bobby" this time. Last time he was "Obsidian". And the time before that he was "John".
Was This Post Helpful? 0
  • +
  • -

#3 maceysoftware   User is offline

  • Member Title
  • member icon

Reputation: 381
  • View blog
  • Posts: 1,621
  • Joined: 07-September 13

Re: Get Value from Right with first white space

Posted 09 July 2019 - 12:41 AM

This can be achieved by using the following methods:

LastIndexOf

SubString

If you want any more help, you will need to provide code snippets of your failed attempts, so we can see where you're going wrong and guide you to the correct answer.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1