Json array analysis of problem

I tried to parse a json response after completing the examples and code examples on the forum but there is no direct example to analyze something like [{'uri":"file:///accounts/1000/shared/camera/IMG_00000012.jpg'}], and I can't understand it, how can I enter loop for and print each uri in the response?

Thanks for any help.

What I do to analyze the json is the following

JsonDataAccess jda;

QVariantList list = jda.load(reply).value();

Then you have a QVariantList and you can iterate over it. Hope this was somewhat helpful.

EDIT:

I have to say that the response is a response to a networkrequest. You will need to find a way to parse a file with json to a QVariantList. I guess google is your best friend for this. "QString to QVariantList" or "json to QVariantList". Something like that.

Tags: BlackBerry Developers

Similar Questions

  • How to JSON array index

    Hi, I have this structure of JSON:

    {

    "Colours":]

    {

    "1subcolor":]

    {

    "title": "1st color."

    "description': '1st Image."

    'seira': 'toy-B ',.

    'image': "images/wheel_cool.png,"

    'largeimage': ' images/wheel_cool.png.

    },

    {

    "title": "1st color."

    "description': '1st Image."

    'seira': 'toy-B ',.

    'image': "images/wheel_cool.png,"

    'largeimage': ' images/wheel_cool.png.

    },

    {

    "title": "1st color."

    "description': '1st Image."

    'seira': 'toy-B ',.

    'image': "images/wheel_cool.png,"

    'largeimage': ' images/wheel_cool.png.

    },

    {

    "title": "1st color."

    "description': '1st Image."

    'seira': 'toy-B ',.

    'image': "images/wheel_cool.png,"

    'largeimage': ' images/wheel_cool.png.

    }

    ],

    "2subcolor":]

    {

    "title": "2nd color."

    "description': '1st Image."

    'seira': 'toy-B ',.

    'image': "images/wheel_cool.png,"

    'largeimage': ' images/wheel_cool.png.

    },

    {

    "title": "2nd color."

    "description': '1st Image."

    'seira': 'toy-B ',.

    'image': "images/wheel_cool.png,"

    'largeimage': ' images/wheel_cool.png.

    },

    {

    "title": "2nd color."

    "description': '1st Image."

    'seira': 'toy-B ',.

    'image': "images/wheel_cool.png,"

    'largeimage': ' images/wheel_cool.png.

    },

    {

    "title": "2nd color."

    "description': '1st Image."

    'seira': 'toy-B ',.

    'image': "images/wheel_cool.png,"

    'largeimage': ' images/wheel_cool.png.

    },

    {

    "title": "2nd color."

    "description': '1st Image."

    'seira': 'toy-B ',.

    'image': "images/wheel_cool.png,"

    'largeimage': ' images/wheel_cool.png.

    }

    ],

    "3subcolor":]

    {

    "title": "3rd color."

    "description': '3D Image."

    'seira': 'toy-B ',.

    'image': "images/wheel_cool.png,"

    'largeimage': ' images/wheel_cool.png.

    },

    {

    "title": "3rd color."

    "description': '3D Image."

    'seira': 'toy-B ',.

    'image': "images/wheel_cool.png,"

    'largeimage': ' images/wheel_cool.png.

    },

    {

    "title": "3rd color."

    "description': '3D Image."

    'seira': 'toy-B ',.

    'image': "images/wheel_cool.png,"

    'largeimage': ' images/wheel_cool.png.

    }

    ]

    }

    ],

    'Handle':]

    {

    "1subhandle":]

    {

    "title": "round 1"

    "description': '1st Image."

    'seira': 'toy-B ',.

    'image': "images/wheel_cool.png,"

    'largeimage': ' images/wheel_cool.png.

    },

    {

    "title": "1st color."

    "description': '1st Image."

    'seira': 'toy-B ',.

    'image': "images/wheel_cool.png,"

    'largeimage': ' images/wheel_cool.png.

    },

    {

    "title": "round 1"

    "description': '1st Image."

    'seira': 'toy-B ',.

    'image': "images/wheel_cool.png,"

    'largeimage': ' images/wheel_cool.png.

    },

    {

    "title": "round 1"

    "description': '1st Image."

    'seira': 'toy-B ',.

    'image': "images/wheel_cool.png,"

    'largeimage': ' images/wheel_cool.png.

    }

    ],

    "2subhandle":]

    {

    "title": "2nd round."

    "description': '1st Image."

    'seira': 'toy-B ',.

    'image': "images/wheel_cool.png,"

    'largeimage': ' images/wheel_cool.png.

    },

    {

    "title": "2nd round."

    "description': '1st Image."

    'seira': 'toy-B ',.

    'image': "images/wheel_cool.png,"

    'largeimage': ' images/wheel_cool.png.

    },

    {

    "title": "2nd round."

    "description': '1st Image."

    'seira': 'toy-B ',.

    'image': "images/wheel_cool.png,"

    'largeimage': ' images/wheel_cool.png.

    },

    {

    "title": "2nd round."

    "description': '1st Image."

    'seira': 'toy-B ',.

    'image': "images/wheel_cool.png,"

    'largeimage': ' images/wheel_cool.png.

    },

    {

    "title": "2nd round."

    "description': '1st Image."

    'seira': 'toy-B ',.

    'image': "images/wheel_cool.png,"

    'largeimage': ' images/wheel_cool.png.

    }

    ],

    "3subhandle":]

    {

    "title": "3rd round."

    "description': '3D Image."

    'seira': 'toy-B ',.

    'image': "images/wheel_cool.png,"

    'largeimage': ' images/wheel_cool.png.

    },

    {

    "title": "3rd round."

    "description': '3D Image."

    'seira': 'toy-B ',.

    'image': "images/wheel_cool.png,"

    'largeimage': ' images/wheel_cool.png.

    },

    {

    "title": "3rd color."

    "description': '3D Image."

    'seira': 'toy-B ',.

    'image': "images/wheel_cool.png,"

    'largeimage': ' images/wheel_cool.png.

    }

    ]

    }

    ],

    'Access':]

    {

    "1subacc":]

    {

    "title": "1 VAC."

    "description': '1st Image."

    'seira': 'toy-B ',.

    'image': "images/wheel_cool.png,"

    'largeimage': ' images/wheel_cool.png.

    },

    {

    "title": "1 VAC."

    "description': '1st Image."

    'seira': 'toy-B ',.

    'image': "images/wheel_cool.png,"

    'largeimage': ' images/wheel_cool.png.

    },

    {

    "title": "1 VAC."

    "description': '1st Image."

    'seira': 'toy-B ',.

    'image': "images/wheel_cool.png,"

    'largeimage': ' images/wheel_cool.png.

    },

    {

    "title": "1 VAC."

    "description': '1st Image."

    'seira': 'toy-B ',.

    'image': "images/wheel_cool.png,"

    'largeimage': ' images/wheel_cool.png.

    }

    ],

    "2subacc":]

    {

    "title": "2nd VAC."

    "description': '1st Image."

    'seira': 'toy-B ',.

    'image': "images/wheel_cool.png,"

    'largeimage': ' images/wheel_cool.png.

    },

    {

    "title": "2nd color."

    "description': '1st Image."

    'seira': 'toy-B ',.

    'image': "images/wheel_cool.png,"

    'largeimage': ' images/wheel_cool.png.

    },

    {

    "title": "2nd VAC."

    "description': '1st Image."

    'seira': 'toy-B ',.

    'image': "images/wheel_cool.png,"

    'largeimage': ' images/wheel_cool.png.

    },

    {

    "title": "2nd VAC."

    "description': '1st Image."

    'seira': 'toy-B ',.

    'image': "images/wheel_cool.png,"

    'largeimage': ' images/wheel_cool.png.

    },

    {

    "title": "2nd VAC."

    "description': '1st Image."

    'seira': 'toy-B ',.

    'image': "images/wheel_cool.png,"

    'largeimage': ' images/wheel_cool.png.

    }

    ],

    "3subacc":]

    {

    "title": "3rd CAC."

    "description': '3D Image."

    'seira': 'toy-B ',.

    'image': "images/wheel_cool.png,"

    'largeimage': ' images/wheel_cool.png.

    },

    {

    "title": "3rd CAC."

    "description': '3D Image."

    'seira': 'toy-B ',.

    'image': "images/wheel_cool.png,"

    'largeimage': ' images/wheel_cool.png.

    },

    {

    "title": "3rd color."

    "description': '3D Image."

    'seira': 'toy-B ',.

    'image': "images/wheel_cool.png,"

    'largeimage': ' images/wheel_cool.png.

    }

    ]

    }

    ]

    }

    I created dynamically 3 buttons I want, with the names (color, handles, accessories)

    $.getJSON (jsonfile, {function (data)})

    $(données, fonction (tableau, index) {} .each)

    Console.log ("first each", index, array);

    $(index, fonction (k, value) {} .each)

    Console.log ("every second", value);

    var s = stage.createChildSymbol ("submenutemplate", "menuofmodelscontents");

    var r = s.getSymbolElement ();

    s.$("Sub").html (Array);

    Now, how can I make the table above to be listed 0,1,2 as I want to be able to create an action click on these buttons.

    And when I click for example of colors, the 1st/2nd/3rdsubcolor table to display as the title of a div and the objects in the same array to display.

    My problem is how to get the data from the above JSON that is in another dynamic symbol, to the dynamic symbol created submenutemplate, for example. (Colors, handles, accessories) and create the dynamic symbol with the objects.

    Here is the link to the files Dropbox - complex - json.zip

    Hi Zoze

    Here is your answer:

    Dropbox-complex json - fixed.rar

    I also have 4 tips for you:

    1 take a very good course or read a lot of tutorials on JSON, your JSON Structure is terrible!

    2 complex JSON until you never know what you're doing

    3 - your Structure to animate dashboard is also very terrible JSON done with it you need to learn to work with edge animate, I advice tutorials you Lynda, can help you and in case you saw these tutorial I advice you to review

    4. If we do something we know not about it, its best to read a lot of books on the subject and see a lot of tutorials for hours on the subject to understand what we want and how we should do, think that many things about what we have and create a flowchart and advance a map or


    the best way is to turn our project in the hands of someone who knows what to do!

    If you want to grow on jQuery and edge lead, please take my advice very serious

    concerning

    Zaxist

  • Excel & ActiveX: Insert arbitrary columns of 2D array and create problems of graph

    Hello

    I want to insert data in a 2D of LabView or 1 d table in Excel and create graphics.

    I used the information in the following example:

    http://www.NI.com/example/28934/en/

    and has managed to create a new Excel file (I use Excel 2010) writes data in a 1 d table to a column in excellent by creating a while loop and using the first element of the array to write in a specific cell. I use the loop counter to write to the next cell when the loop starts again and always remove the first value, I write to the cell of the table until it is empty.

    Now I also want to write a 2D - column in Excel table should be the first column of the matrix and so. Here, I can not use the loop counter directly as Excel there are only 1,2,... for the lines, but uses A, B,... to count columns. Also I do not know in advance the number of columns my 2D array will contain, thus creating a lookup table as (A means 1, 2 B, which means...) is not really an option (except there is really no other way). Is there a possibility to convert numbers into letters or somehow to "explain" to the program that this column 2 of the table means column B in Excel for example, or is it possible to insert new columns?

    I figured out how to add new calculation sheets and as I also need to create a certain number of spreadsheets and I know that the standards 3 sheets are present during the creation of the file, I use the method 'Add' to create new worksheets before the worksheet 3 - I could use the same method to create new columns in Excel , but so far I have not found a method to do. Or is there a way to enter into the 2D table all at once?

    So I want to create a chart (in case 1 d tables draw a bar when using 2D arrays a 3D field) to display the data. I found this example:

    http://www.NI.com/newsletter/51339/en/

    -> that I do not have the tool box I would do it directly using ActiveX, so I tried to make things as shown under the title "ActiveX DIY /.» NET'

    I tried to load the code snippet into a new Excel file but got the error message "microsoft.office.interop.excel.dll" not found and this is why the code does not work. Which confuses me a bit as I guess when this dll is not present I can not access Excel of LabView at all, although my understanding of what I'm doing so far is limited in the calm. ;-)

    Also - as far as I understand the extract - when you create a new graphic object, I should be able methods to create for her, however when I do a right click on the graphic object to a symbol of the spreadsheet ActiveX it no listed.

    To explain my problems better, I added an excerpt showing my two problems: the inside of the two loops while showing how to import a table 1 d. In the outer loop I separate the columns. I know that is not currently as has all the data in the column of the Excel sheet - so I need to convert the external meter number a, B,... or find another solution.

    In addition, on extract, I placed a property ActiveX spreadsheet with the Chart object - I can see that the difference to the graphics object of the example code of the last link above is the color. However I do not know what it means and how to change / fix this.

    And just to make sure - I know that this path that the VI is not running as the graphical object is placed completely false – I just did, so it is included in the extract.

    I would be grateful for any suggestion,

    Thank you!

    Hi all

    for your information in professional 2014 LabVIEW report generation toolkit is included

    Table 2D

    I want to write table 2D in specific columns/rows in excel

    Graph

    Create a graph through ActiveX Labview traced XY scatter on an excel sheet

    also good information about Excel and ActiveX

    Excel Council

    Hope that if aid, if not please let me know.

  • OfficeJet Pro 8620: Analysis of problems of printer to the computer using windows 10

    I just upgraded to Windows 10 and now I'm not able to scan from the printer to the computer. I can scan the other way IE. computer to scan but is not as convenient. I had no question before the upgrade. The error message I get is


    "The analysis could not be performed because of one or more of the following problems:

    -Connection to the computer is lost.

    -L' scanning on the computer application is currently in use.

    -Application OCR is not installed on the computer.

    See the computer for details screen'.

    First of all it is connected with a usb cable, so no logical reason why the connection is lost.

    Secondly it is not used because I am trying to use it

    Third, it has baffled me because there is no reason why the OCR application is now gone, he worked before windows 10.

    and finally there is no detail on the computer screen, why it tells me that I do not understand.

    Any help would be appreciated. Thank you.

    Hello again,

    Looks like the next option is to uninstall & reinstall the printer software. This will ensure that the scan to computer option is restored.

    Please find the link below to install the printing software.

    http://support.HP.com/us-en/drivers/selfservice/HP-OfficeJet-Pro-8620-e-all-in-one-printer-series/5367611/model/5367613#Z7_3054ICK0KGTE30AQO5O3KA30R1

    Note: Esnure that the chosen operating system is win10.

    If you are facing difficulties with the installation or uninstall, please contact HP technical support to the 1-800-474-6836.

    Kind regards

    Ashish

     

    **************

    I work for HP, here is my point of view only.

  • Query JSON array does not

    No idea how to get the following to work?

    Thank you

    Phil

    drop table json;


    create table json)

    clob json_attr

    CONSTRAINT ensure_json_attr CHECK (json_attr IS JSON));


    insert into json (json_attr) values

    ("{'EMPNO': 7369, 7499 (7521) AND}")

    "DEPTNO": [20, 30, 30].

    "COMM": [0, 300, 500].

    'JOB': ['CLERK', 'SELLER', 'SELLER'],

    "MGR": 7902, 7698 (7698) AND

    'ENAME': ['SMITH', 'ALLEN', 'QUARTER'],

    "HIREDATE": ["17 DECEMBER 80", "20 FEBRUARY 81", "22 FEBRUARY 81" "" "],

    {"SAL": [800, 1600, 1250]} ");"

    SELECT jt.*

    JSON,.

    JSON_TABLE (json_attr, ' $' [*])

    COLUMNS)

    EMPNO number PATH ' $. EMPNO',.

    ENAME VARCHAR2 PATH ' $. ENAME'

    )

    ) AS jt;

    I want him to give:

    EMPNO, ENAME

    ---------- ----------

    7369 SMITH

    7499 ALLEN

    7521 WARD


    But she does not return anything.

    But she does not return anything.

    Obviously

    The path expression "$" [*] does not target anything in the document, which has a rather unusual btw.

    Is it really the kind of structure, with what you have to deal with?

    If so, I think that there is no other way but to use separate JSON_TABLEs to extract each of the array elements and join their return to form columns and relational lines:

    SQL> select jt1.empno, jt2.ename
      2  from json t
      3     , json_table(t.json_attr, '$.EMPNO[*]' COLUMNS rid for ordinality, empno number path '$') jt1
      4     , json_table(t.json_attr, '$.ENAME[*]' COLUMNS rid for ordinality, ename varchar2(30) path '$') jt2
      5  where jt1.rid = jt2.rid ;
    
         EMPNO ENAME
    ---------- ------------------------------
          7369 SMITH
          7499 ALLEN
          7521 WARD
    

    (Note that the above only works if the table contains a single row, but could be adapted to the condition that the table has some kind of identity)

    As said, the following would be much more sympathetic to manage:

    [
     {"EMPNO":7369,"DEPTNO":20,"COMM":0,"JOB":"CLERK","MGR":7902,"ENAME":"SMITH","HIREDATE":"17-DEC-80","SAL":800},
     {"EMPNO":7499,"DEPTNO":30,"COMM":300,"JOB":"SALESMAN","MGR":7698,"ENAME":"ALLEN","HIREDATE":"20-FEB-81","SAL":1600},
     {"EMPNO":7521,"DEPTNO":30,"COMM":500,"JOB":"SALESMAN","MGR":7698,"ENAME":"WARD","HIREDATE":"22-FEB-81","SAL":1250}
    ]
    
  • HP Officejet 7612: analysis of problems after installing Windows 10

    After installing Windows (prior to Windows Vista) 10, scan documents with my HP Officejet 7612 became a hell of a job.

    Printing is no problem.

    With Webscan, I can only scan and save 1 page at a time, I can not scan several pages of the document 1 more.

    I downloaded "Extended Scan" but when I try to use this app, it says "year error occurred while scanning" without more information.

    With "HP Scan and capture" I can't scan the size of A3 paper full of documents and there seems to be no possibility to change the size of a3 paper. Maximum size is 'legal letter '.

    Same problem with "Windows Fax and scan."

    Are there other ways to recover the possibilities of full scan from my HP Officejet 7612?

    Hello

    Thank you for using the HP Forums.

    You can download and install the software COMPLETE features of HP printing for your operating system:

    The following resources will help you:

    HP printer install wizard for Windows
    http://ftp.HP.com/pub/softlib/software13/COL50403/MP-150580-2/hppiw.exe

    Once you have downloaded and installed the software, FULL of features, you will be able to print and scan.

    Hope that helps.

  • Win 10 analysis of problem with Officejet Pro 8500 A909g wireless printers

    I have the same problem, scanning works very well since long I do not use the HP Solution Center, it worked fine on W7, but after the upgrade of the W10 (YES I installed the new feature full support for W10)-Scanner is still not functional with the HP solution Center. I tried all solutions with no joy. HP scanner doctor says that it cannot find HP Scan, Solution Center, said another program uses the sanner. ?? Frustrated!

    Hello

    1. This same CCC folder, run Uninstall_L4.bat) press enter once if only black dialogue is shown) and allow to fill any screen uninsitall (there will be multiple screens to uninstall one after the other.
    2. Restart the PC when requested to do so.
    3. Right click the button start and select programs and features, there is no request of HP left.
    4. Locate the following folders, and remove all remaining files HP or Hewlett-Packard :
      • C:\Program Files
      • C:\Program Files\Common Files
      • C:\Program Files (x 86)
      • C:\Program Files (x 86) \Common Files
      • C:\Users\(your user name) \AppData\Roaming
      • C:\Users\(your user name) \AppData\Local
      • C:\ProgramData
    5. Navigate to C:\Windows and delete the pritner folder, it should be identical to hpoj8500A909g
    6. Always in C:\Windows, find the twain_32 folder and rename it to twain_32.OLD
    7. Right click the button start and click on run, type temp in the shown dialog box and press OK, then delete all the contents of the Temp folder (no worries, these are all temporary files that can be saefly removed)
    8. Right click the button start and click on run, type folder in the shown dialog box and press OK, then delete all the contents of the Temp folder (no worries, these are all temporary files that can be saefly deleted).
    9. Save the insatller depending on the Office you'd, do not reinstall it again that I just send you additional last private preliminary step to reinstall the HP software:
      http://ftp.HP.com/pub/softlib/software13/COL31041/MP-110033-3/OJ_AIO_P8500_A909_Full_Win_WW_140_408-5.exe
    10. Look for a message private to me, if you are unfamilier with works of how private e-mail, you will see a notification message in the top right envelope icon from the page to the screen of the forum.

    Kind regards

    Shlomi

  • Analyse the problem of video controller

    Have been used this machine for years without any major problems.  Recently, the problem reports shows the following:

    Description
    A problem with your video hardware caused Windows to stop working correctly.

    Signature of the problem
    Problem event name: LiveKernelEvent
    OS version: 6.0.6002.2.2.0.256.1
    Locale ID: 1033

    Files helping to describe the problem
    WD-20110312 - 0216.dmp
    SysData. XML
    Version.txt

    See a temporary copy of these files
    WARNING: If a virus or other security threat caused the problem, open a copy of file can harm your computer.

    Additional information about the problem
    BCCode: 117
    BCP1: 86101008
    BCP2: 8EF0877E
    BCP3: 00000000
    BCP4: 00000000
    OS version: 6_0_6002
    Service Pack: 2_0
    Product: 256_1

    He is transferred to skydrive to more information: http://cid-63220807a7f4accb.office.live.com/browse.aspx/Video%20Hardware%20Error?permissionsChanged=1&1

    No 'solution' not found in the problem report feature.  Looking for an explanation of this problem in language that would include a user

    Mnewsome salvation,

    This will help you:http://answers.microsoft.com/en-us/windows/forum/windows_7-hardware/a-problem-with-your-video-hardware-caused-windows/0f9b6eeb-6eba-4278-ba1b-ca1310f0b2da

  • C6380 and OSX 10.6.2 analysis of problems

    I have a Mini 09 with OSX10.6.2 and a Mini PPC with OSX 10.5.8. Both are on the WiFi network. Mini PPC can print, copy, scan and scan to OCR without problem. With the original drivers included with OSX 10.6, I could print, copy and scan. At least the scans occur shortly after choosing the printer overview iin or Image capture, although I could not scan to OCR. Since I've upgraded to the latest printer drivers on the Intel Mini, scanning is exceptionally slow. After choosing the printer Priview or Capture of Image, it takes about a minute to identify the printer. Then, it takes about a minute to Priview or Capture images to be ready to scan. I deleted and reloaded and reset the print queue several times. This is not enough. Also, buttons print/scanning never highlighted in the cover of the printer. Can anyone suggest other measures I could take?

    Did you get in the front area of Linksys?  We will just go see the DHCP range that he uses, and then set the printer outside this range.

    Type 192.168.1.1 in a browser.  The connection is blank and the password is "admin".

    Right there on the first page it will tell you the DHCP range.  Follow the instructions to enter a static IP address on your printer and choose a number outside this range (probably 192.168.1.) [something below 100]).

  • Doc after analysis security problem.

    I have a robot that strikes a network share, reflects the content and load in a single folder, in the KD. I have a custom portlet that displays the contents of this folder of KD in a tree view, users can navigate in subfolders and click to open docs. The cralwer defines access to content for GroupZ. Willing to "amend" GroupZ form the folder in the foreground downhill. GroupZ members can navigate through folders, but when they open one (using a tag of pt doclinkoperner) they get a gateway refused, you have no permission error. Admins have no problem. Brainfreeze won't let me see the light. I added a GroupZ sweat to the admin group and they can now open docs. thoughts?

    Hey, have you checked the security for the Data Source that uses the robot? Could be a problem there.

  • (Redirected) Reference Dell Checkup analysis HDD problem

    I was on my PC when a popup is right in saying that a chekup needed to run to verify that my PC works ok, I started the test and he said the following

    Targeted reading test - FAILED

    SMART short self-test - failed

    What do this mean and what do I do about it?

    I didn't notice what's going wrong with my PC, but after a week, he was once an error saying that I had to reinstall my hard drive but I ignored him

    any help would be appreciated

    Hi Chompy156,

    Please repost this in the Alienware forum for faster assistance.

    http://en.community.Dell.com/Owners-Club/Alienware/

  • analyse the problem of the table

    Hi all
    I analyzed a table and calculated statistics for the table. but when I checked the parsed date is showing as

    GEDIS_CONTACT 2007-12-29 08:02:25

    What could be the reason. Any idea?

    Thank you
    Krishna

    KRIS wrote:
    SQL > analyze table om_cust.gedis_contact computing statistics;

    Parsed table.

    Version is 10.2.0.4

    Do not use this command to analyze the tables so you need to use DBMS_STATS. Procedure GATHER_TABLE_STATS then check again.

  • The analysis of problem

    Hi guys,.

    Database version: 10g

    If someone help out me?

    How to parse this string "October 8, 2007 to December 14, 2007 - article 3"?


    My code is not working:
    WITH T 
    AS
    (SELECT 'Oct 08 2007 to Dec 14 2007 - Section 3' FROM dual)
              SELECT  REGEXP_SUBSTR(string,'[^t]+', 1, 2))   col1,
                          SUBSTR(REGEXP_SUBSTR(string,'to[^-]+', 1), 3))   col2
               FROM T
    I want-
     
    Col1                        Col2
    Oct 08 2007            Dec 14 2007
    Thank you

    Hello

    You don't need regular expressions for this:

    WITH     got_pos     AS
    (
         SELECT     string
         ,     INSTR (string, ' to ')     AS to_pos
         ,     INSTR (string, '-')     AS hyphen_pos
         FROM     t
    )
    SELECT     SUBSTR ( string
                , 1
                , to_pos - 1
               )          AS col1
    ,     SUBSTR ( string
                , to_pos + 4
                , hyphen_pos - (to_pos + 5)
               )          AS col2
    FROM     got_pos;
    

    But, if you want to use regular expressions:

    SELECT     REGEXP_REPLACE ( string
                     , ' to .*'
                     )     AS col1
    ,     REGEXP_REPLACE ( string
                     , '.* to ([^-]+) -.*'
                     , '\1'
                     )     AS col2
    FROM     t;
    

    One of these will work (for what I think you want), even if the string contains things like ' 8 October 2007 to December 14, 2007 - Section 3

  • Reference Dell Checkup analysis HDD problem

    I was on my PC when a popup is right in saying that a chekup needed to run to verify that my PC works ok, I started the test and he said the following

    Targeted reading test - FAILED

    SMART short self-test - failed

    What do this mean and what do I do about it?

    I didn't notice what's going wrong with my PC, but after a week, he was once an error saying that I had to reinstall my hard drive but I ignored him

    any help would be appreciated

    The X 51 R1 supports a 3.5-inch, SATA 3, up to 7200 RPM HARD drive. If you want to buy in a different store, make sure that it matches those specifications. You can also call our Tech support and see if replacement of hard drives are available for your desktop.

    Improvements in video card in Dell certified for this model are:

    Manufacturer

    0N3PJ

    GeForce GT 545, 1 GB

    G9H1F

    GeForce GTX 555, 1 GB

    RCDYV

    GeForce GT 640, 1 GB

    9168:

    GeForce GTX 645, 1 GB

    FPDH3

    GeForce GTX 660, 1.5 GB

    JCW0V

    GeForce GTX 660Ti, 1.5 GB

    106DK

    Radeon R9 270, 2 GB

    NOTE: You need the 330W AC adapter to update the video cards.

  • How to create the string of JSON using QVariantMap array?

    Hi all

    How to create sub string of Json using QVariantMap array?

    {
        "Test1": [
            {
                "dataTest1": "0000",
                "dataTest2": 1412,
                "dataTest3": "",
                "dataTest4": "0000",
            }
        ],
        "Test2": {
            "data1": 1412008,
            "data2": "0000",
            "data3": "A",
            "data4": "0000",
        }
    }
    

    Waiting for your answer please reply me as soon as possible.

    JSON array is QVariantList

    JSON object is QVariantMap

    then create a QVariantLsit and insert your QVariantMaps

Maybe you are looking for

  • HP Compaq Mini 110 BIOS Password Reset

    I have a hp compaq mini 110 She asks current password which I don't have the stop code is [redacted serial number by Moderator]

  • Question of drainage for the 9.2 battery fast IOS

    Since the upgrade to iOS 9.2, my battery has warm fonctionnee and quick drainage. It seems a percentage point of emptying every 30 seconds.  I went to the Apple Store and claimed that they have not heard of a problem of 9.2 battery again.  When I was

  • WindowsUpdate_80070BC9""WindowsUpdate_dt000"

    I have a problem in this update it is not let me update and load. It is an update of the posting, but I am a partner with Microsoft and the computer is up to date... " WindowsUpdate_80070BC9" "WindowsUpdate_dt000"

  • the other party cannot hear me when video chatting

    I use windows Messenger to chat with my family, it didn't happen until recently, but when I start a video conversation, I can see and hear but they can only see me and hear me not, I have no idea why this is happening the Messenger gave me a lot of p

  • How read the upc barcode in-app

    Hello Hoping someone can lead me in the right direction, I want to be able to read upc barcodes from within my application. Is there a code example?, a lib recommended to use?, IE zbar. Please let me know, interested in your comments. Thank you