Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Extract after and between spaces in a string 1

Status
Not open for further replies.

kernal

Technical User
Feb 27, 2001
415
0
0
US
Extract after and between spaces in a string

1. If I want to extract "in a string" so any string after the 5th space.
2. If I want to extract "between spaces" so any string between the 3rd space and 5th space.

Help is appreciated.

Thank you!
 
The Oracle command INSTR (instring) will locate the position of a space within a string.
The Oracle command SUBSTR (substring) will extract the portion of a string within a larger string.

So, use INSTR to locate the 3rd and 5th spaces. Use SUBSTR to get your portions of the string.

==================================
advanced cognitive capabilities and other marketing buzzwords explained with sarcastic simplicity


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top