Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6872081
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T03:53:00+00:00 2026-05-27T03:53:00+00:00

This is my source string substrb ( userenv ( ‘CLIENT_INFO’ ) , 1 ,

  • 0

This is my source string

substrb ( userenv ( 'CLIENT_INFO' ) , 1 , 1 ) , '' , null , substrb ( 'some_text'  , 1 , 10 ) 

I want to tokenize it in the following form

[1] : substrb ( userenv ( 'CLIENT_INFO' ) , 1 , 1 )
[2] : ''
[3] : null
[4] : substrb ( 'some_text'  , 1 , 10 )

Any Idea how to do it?

Thank you

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T03:53:00+00:00Added an answer on May 27, 2026 at 3:53 am

    I would advise writing a parser for this. All you need to do is count the number of currently open brackets and cut the string if there is a comma and the counter is at 0.

    Something along the line of this:

    int openBrackets = 0;
    ArrayList<String> tokens = new ArrayList<String>();
    StringBuilder tmp = new StringBuilder();
    for (int i = 0; i < inputString.length; ++i) {
       char cc = inputString.charAt(i);
       if (cc == '(') openBrackets++;
       else if (cc == ')') openBrackets--;
       else if ((cc == ',') && (openBrackets == 0)) {
          tokens.add(tmp.toString());
          tmp.delete(0, tmp.length());
       }
       else tmp.append(cc);
    }
    if (tmp.length() > 0) tokens.add(tmp.toString());
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working this source code: #include <string> #include <vector> #include <iostream> #include <istream> #include
My open-source Android application uses this in an SQL query: String.format(%f, someDoubleValue); Unfortunately, in
I have a string read from another source such as \b\bfoo\bx. In this case,
So i have this method: internal K GetValue<T, K>(T source, string col) where T
Consider this source: public partial class FormTest : Form { private Test test {
So I have Image like this (source: de-viz.ru ) I want to get something
//This source is a line read from a file String src = 23570006,music,**,wu(),1,exam,\Monday9,10(H2-301)\,1-10,score,; //This
i want to replace some string(s) from a source string. so that shouldn't be
Consider the following Pattern :- aba And the foll. source string :- abababbbaba 01234567890
I'm trying to adapt this answer How do I tokenize a string in C++?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.