Selecting numbers starting with 0, followed by [1-9]

Hello,
i'm using 9i (its a 3rd party software, i have no influcene on when they decide to upgrade...) on Unix.
In a table i would like to select all rows whose column x has entries that
- start with 0
- have a digit between 1 - 9 following the 0
So it should select rows with this value:
012345
098765
034343
044544
But it should not select rows with values like this:
000343333
00-334-2323
22---333--333
AA--00--000000
etc
Can you please give me some hint ?
Edited by: user590072 on 26.01.2010 00:46

You should make a habit of posting CREATE TABLE statement, so we can play with your requirement.
Does this work for you:
SQL> create table t as (
  2  select '0012345' col from dual union all
  3  select '012345' from dual union all
  4  select '098765' from dual union all
  5  select '034343' from dual union all
  6  select '044544' from dual union all
  7  select '000343333' from dual union all
  8  select '00-334-2323' from dual union all
  9  select '22---333--333' from dual union all
10  select 'AA--00--000000' from dual
11  );
Table created.
SQL> select *
  2  from   t
  3  where  substr(col, 1, 1) = '0'
  4  and    translate(substr(col,2),'x123456789','x') is null;
COL
012345
098765
034343
044544
4 rows selected.

Similar Messages

  • I'm trying to input phone numbers starting with 0, into Numbers spreadsheet. It keeps deleting the 0-  any clues?

    I'm trying to input phone numbers starting with 0 into Numbers Spreadsheets. It keeps deleting the 0. any clues anyone?

    select the cells (or column) where you are entering the phone numbers and change the format to "Text":
    Then "Natural" way to write numbers is to omit leading zeros.
    Another ways is to leave the the cell format as "Automatic" and type a single quote BEFORE entering the phone number... like this:
    '0408

  • Session "" failed to start with the following error: 0xc0000022

    Newly installed Windows 2012 R2 server throws the following event roughly every 3 minutes:
    Session "" failed to start with the following error: 0xc0000022
    The PID referenced in the event points to WmiPrvSE.exe running as NETWORK SERVICE.  Is there something obvious I'm missing because I'm not sure where to go with the information I found so far.  I already did my fair sharing of Binggling and everything
    I find doesn't apply or doesn't fix the problem.

    Hi,
    Can you let me know the full event log content?
    I suggest you restart the Windows Management Instrumentation service.
    Niki Han
    TechNet Community Support

  • Session "Circular Kernel Context Logger" failed to start with the following error: 0xC0000035

    fresh install  and configure  on  A Dell optiplex3010 running  window 7 pro  64 bit  running can  anyone  tell   what   this  is  ?
    Log Name: Microsoft-Windows-Kernel-EventTracing/Admin Source: Microsoft-Windows-Kernel-EventTracing Date: 4/16/2014 12:04:17 PM Event ID: 2 Task Category: Session Level: Error Keywords: Session User: SYSTEM Computer: HMCServer Description: Session "Circular
    Kernel Context Logger" failed to start with the following error: 0xC0000035 Event Xml: <event xmlns="http://schemas.microsoft.com/win/2004/08/events/event"><system><provider guid="{B675EC37-BDB6-4648-BC92-F3FDC74D3CA2}"
    name="Microsoft-Windows-Kernel-EventTracing"><eventid>2</eventid> <version>0</version> <level>2</level> <task>2</task> <opcode>12</opcode> <keywords>0x8000000000000010</keywords>
    <timecreated systemtime="2014-04-16T16:04:17.657816300Z"><eventrecordid>44</eventrecordid> <correlation><execution processid="4" threadid="60"><channel>Microsoft-Windows-Kernel-EventTracing/Admin</channel>
    <computer>HMCServer</computer> <security userid="S-1-5-18"></security></execution></correlation></timecreated></provider></system> <eventdata><data name="SessionName">Circular
    Kernel Context Logger</data> <data name="FileName"></data> <data name="ErrorCode">3221225525</data> <data name="LoggingMode">268436608</data> </eventdata> </event>

    The error is implying there is a naming conflict. This could be 2 or more PCs with the same SID or Computer Name, or two different objects (shares/drives) attempting to use the same drive letter. There is one thing I found of renaming a file that has helped
    some people:
    http://social.technet.microsoft.com/Forums/windows/en-US/2eab69ac-7537-40c4-916e-6f6d41c05d4b/session-circular-kernel-context-logger-failed-to-start-with-the-following-error-0xc0000035?forum=w7itprogeneral

  • IP Helper Service causes Session "" failed to start with the following error: 0xC000000D

    I have a Windows 8.1 Pro version. In the event viewer I can see that the error `Session "" failed to start with the following error: 0xC000000D´ is registered every time I boot my laptop.
    I am 100% sure that this is related to the IP Helper Service (iphlpsvc) because the error is logged every time I manually restart the service.
    I have a Windows 8.1 Pro version. In the event viewer I can see that the error `Session "" failed to start with the following error: 0xC000000D´ is registered every time I boot my laptop.
    I am 100% sure that this is related to the IP Helper Service (iphlpsvc) because the error is logged every time I manually restart the service.
    Does anyone know how to fix this issue? I know I could disable the service but I prefer not to do it.
    Thanks
    Alberto

    Hi,
    IP Helper (service name 'iphlpsvc') is apparently designed to improve a Windows PC's support for IPv6 network protocol.
    I suggest you try enable  the dump collection by copying following words into notepad, saving it as dump.reg and importing it:
    Windows Registry Editor Version 5.00
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting\localdumps\iphelper.exe]
    "DumpFolder"=hex(2):63,00,3a,00,5c,00,63,00,72,00,61,00,73,00,68,00,64,00,75,\
      00,6d,00,70,00,73,00,00,00
    "DumpCount"=dword:00000010
    "DumpType"=dword:00000001
    "CustomDumpFlags"=dword:00000000
    Once the error appears again, please find the crashdump file under c:\.
    Regards,
    Kelvin hsu
    TechNet Community Support

  • Session "UpdateUx" failed to start with the following error: 0xC0000022

    Running WTP Build 10049 and get the following error, after every boot/reboot :
    Error    21/04/15 11:09:39    Kernel-EventTracing    2    Session
    Expanding this, by clicking on it, produces the following message :
    Session "UpdateUx" failed to start with the following error: 0xC0000022
    Any suggestions for a cure.

    Hi athol49,
    Which account you have used to logon this machine?
    This error code is mostly related with the service permission, which indicates that the permission is not configured correctly.
    Try to boot into safe mode and check this issue again, make sure there is no 3rd-party software involved.
    Next thing is to create another admin account( or enable the built-in admin account to create a new admin account, as this one have permisssion issues), then check this issue again.
    Further, run the DISm command to make sure there is no component issue:
    DISM /Online
    /Cleanup-Image
    /RestoreHealth
    /source:WIM:X:\sources\Install.wim:1
    /LimitAccess
    Where the X: is the drive for the install media, or the mounted ISO.
    Regards
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Session "WbadminInBuiltTracing" failed to start with the following error: 0xC0000035

    I'm getting the following error:
    Log Name: Microsoft-Windows-Kernel-EventTracing/Admin
    Source: Microsoft-Windows-Kernel-EventTracing
    Date: 5/17/2010 11:04:48 AM
    Event ID: 2
    Task Category: Session
    Level: Error
    Keywords: Session
    User: ****
    Computer: ****
    Description:
    Session "WbadminInBuiltTracing" failed to start with the following error: 0xC0000035
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
    <System>
    <Provider Name="Microsoft-Windows-Kernel-EventTracing" Guid="{B675EC37-BDB6-4648-BC92-F3FDC74D3CA2}" />
    <EventID>2</EventID>
    <Version>0</Version>
    <Level>2</Level>
    <Task>2</Task>
    <Opcode>12</Opcode>
    <Keywords>0x8000000000000010</Keywords>
    <TimeCreated SystemTime="2010-05-17T18:04:48.898886000Z" />
    <EventRecordID>45</EventRecordID>
    <Correlation />
    <Execution ProcessID="4816" ThreadID="2800" />
    <Channel>Microsoft-Windows-Kernel-EventTracing/Admin</Channel>
    <Computer>****</Computer>
    <Security UserID="****" />
    </System>
    <EventData>
    <Data Name="SessionName">WbadminInBuiltTracing</Data>
    <Data Name="FileName">
    </Data>
    <Data Name="ErrorCode">3221225525</Data>
    <Data Name="LoggingMode">2</Data>
    </EventData>
    </Event>
    Does anyone know what this is or how to prevent it from
    occurring?
    I'm running Windows Server 2008 R2.
    Thanks much,
    James

    Not according to my computer - (actually its at least 4 years now) which among so many other errors have haunted me from the day I bought it and took it home. I've spent literally a year of time out of the 5 I've had this laptop which btw is a home computer,
    not a small business pc - searching, trying fixes that didn't work, searching more trying fixes that worked only to have the same scenario begin again 2-3 months down the road OR new ones pop up - which starts the process all over again. I'm now getting BSOD's
    about once every 2-3 days with no reason in the event viewer.
    And I continue to work on all the errors, warnings and critical errors with no results. I just wish Microsoft would fix these issues instead of developing new OS's that not only carry these problems over but add new ones to each new OS. Don't misunderstand
    me. I like Windows, in fact I'm one of the very few graphic artists out there that prefer it over a MAC but its quite disheartening to be continually working on these issues to say the least.
    Of course, it's just my opinion....I could be wrong!

  • Session "WbadminUIInBuiltTracing" failed to start with the following error: 0xC0000035

    Windows Server 2008 R2 Standard.
    I open the “Windows Server Backup” node in the Server Manager and see the error message in the system log after that.
    Sourece: Kernel-EventTracing
    EventID: 2
    Session "WbadminUIInBuiltTracing" failed to start with the following error: 0xC0000035
    - System
    - Provider
    [ Name] Microsoft-Windows-Kernel-EventTracing
    [ Guid] {B675EC37-BDB6-4648-BC92-F3FDC74D3CA2}
    EventID 2
    Version 0
    Level 2
    Task 2
    Opcode 12
    Keywords 0x8000000000000010
    - TimeCreated
    [ SystemTime] 2010-12-01T11:17:19.937490400Z
    EventRecordID 17
    Correlation
    - Execution
    [ ProcessID] 3472
    [ ThreadID] 3100
    Channel Microsoft-Windows-Kernel-EventTracing/Admin
    Computer LODGER.aqa.com.ru
    - Security
    [ UserID] S-1-5-21-1644491937-706699826-1417001333-3605
    - EventData
    SessionName WbadminUIInBuiltTracing
    FileName
    ErrorCode 3221225525
    LoggingMode 2
    What causes the error? What do I need to do to avoid it?

    I have the same issue on Windows Server 2008 R2 SP1
    >will fix it
    in future release
    What is the next release for my Windows Server? When will it be released?

  • Error event id 2 - Kernel Event Tracing - Session "" failed to start with the following error: 0xC000000D

    I keep getting this strange error logged as Error event id 2. Note session string is blank "". Any ideas?
    Log Name:      Microsoft-Windows-Kernel-EventTracing/Admin
    Source:        Microsoft-Windows-Kernel-EventTracing
    Date:          24/12/2009 09:08:20
    Event ID:      2
    Task Category: Session
    Level:         Error
    Keywords:      Session
    User:          SYSTEM
    Computer:      George-XXL
    Description:
    Session "" failed to start with the following error: 0xC000000D
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="Microsoft-Windows-Kernel-EventTracing" Guid="{B675EC37-BDB6-4648-BC92-F3FDC74D3CA2}" />
        <EventID>2</EventID>
        <Version>0</Version>
        <Level>2</Level>
        <Task>2</Task>
        <Opcode>12</Opcode>
        <Keywords>0x8000000000000010</Keywords>
        <TimeCreated SystemTime="2009-12-24T09:08:20.835299100Z" />
        <EventRecordID>36</EventRecordID>
        <Correlation />
        <Execution ProcessID="1944" ThreadID="1948" />
        <Channel>Microsoft-Windows-Kernel-EventTracing/Admin</Channel>
        <Computer>George-XXL</Computer>
        <Security UserID="S-1-5-18" />
      </System>
      <EventData>
        <Data Name="SessionName">
        </Data>
        <Data Name="FileName">
        </Data>
        <Data Name="ErrorCode">3221225485</Data>
        <Data Name="LoggingMode">5</Data>
      </EventData>
    </Event>

    Can you let us know if you get any Blue Screen crush error while using your comptuer?
    Generally we can safely ignore the errors in the Event log. Aas we don't if you have get other issues in your computer, you can test your computer in the Clean Boot mode. This method will help us determine if this issue is caused by a loading program or service.
    You can try the the following steps:
    1. Click the Start Button type "msconfig" (without quotation marks) in the Start Search box, and then press Enter.
    2. Click the "Services" tab, check the "Hide All Microsoft Services" box and click "Disable All" (if it is not gray).
    3. Click the "Startup" tab, click "Disable All" and click "OK".
    Then, restart the computer. When the "System Configuration Utility" window appears, please check the "Don't show this message or launch the System Configuration Utility when Windows starts" box and click OK.
    Please test this issue in this Clean Boot environment, if the issue disappears in the Clean Boot environment, you can use the dichtomy to quickly narrow down which entry is causing the issue. You can refer to the
    KB929135.
    Good luck!
    John
    This is a very poor answer.  This guy doesn't know what he's talking about because if you tell someone its ok to  "safely ignore the errors in the event log"  as a blanket instruction ESPECIALLY because as he stated so himself
    he didn't know if there were other issues with the OP's pc then he's giving really bad advice. If you ignore errors in the event log then over time your system will degrade and you will have other issues.. Every error on your pc should NOT be ignored.
    It should be decided on a case by case situation.
    Furthermore this is an error involving the Windows Session which it states has failed. Definitely should NOT be ignored.
    I've got the same error which has suddenly just showed up. No BSOD, Do not have WHS installed and all my media center connectors have NEVER been connected. I don't believe this is a service issue. I think it has something
    to do with kernel event tracing.
    Of course, it's just my opinion....I could be wrong!

  • Poplist behavior for selecting value starting with a letter

    Hi
    I have got a poplist in a control block in my form. This is a database item and is populated fine.
    Now, the problem is if I want to select one record in the poplist starting with a particular letter, in-one-go, it is not possible..
    For example, I know that the value in the poplist I want, starts with the letter 'D'
    There are 10 values in the poplist that starts with the letter 'D' and I want to select the 6th value that starts with 'D'.What I want is, when I type in 'D', the poplist should pass controlto the (i.e. select) first element in the list, which starts with 'D'...then it should still remain as popped.The user should be allowed to navigate to all "D's" either using up arrow, down arrow or by typing in the letter D itself..
    Now what happens is, if I type in 'D' in the keyboard, the first value among the list that starts with 'D' is selected by the poplist and the records corresponding to this value is displayed.
    The up arrow/down arrow works fine in the following case now - If I click on the poplist, but do not actually select any item and just use up arrow, downarrow, it works...
    But the real requirement is when typing in any letter, any value in the poplist need not get selected ,but the poplist values should popped up so that the user can browse on it, and then select the required value.
    I will be grateful if somebody gives me the code for this and also tell me which trigger to put in the code?Any property needs to be changed?
    At the moment , my when-list-changed trigger is as follows..Also want to know, if this need to be changed at all?
    go_block('MY_DATABLOCK');
    clear_block(no_validate) ;
    execute_query;Edited by: Krithi on 12-Aug-2009 04:12

    Krithi wrote:
    You have moved far away from what I really need
    I DO NOT use a webform and I dont need to use Javabean in my form!You never mentioned anywhere that YOU DO NOT use a webform. One more reason why you should mention your forms version when you post some questions ;-) which would help others to respond with relevant answer.
    Its just the normal form.
    I said I have just seen examples in web forms but I believe it is do-able in normal forms too..Pls help someone?I am afraid you do not have much choice in client server.
    -Arun

  • Use page numbers starting with 1 on the second page

    I have a document in Pages 09 that I need to have a title page. This page should have no page number so the numbers start on page 2. I have managed to get rid of the page number on the first page, but Pages keeps starting the numbers from 2 on the second page. I tried to set "Start at:" to 1, but that did have no effect. Is there any solution?

    From Vallauris I can't guess what but clearly, you forgot something !
    Compare your settings with these ones.
    Yvan KOENIG (VALLAURIS, France) vendredi 1 juillet 2011 14:00:35 iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8
    Please : Search for questions similar to your own before submitting them to the community
    To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !

  • Select everything starting with first char

    Hi,
    I have a simple question and forgot how to do this. I need to do a select statement and select everything from the table for a field i.e. WERKS starting with 'D'. Any help would be greatly appreciated and rewarded.
    Thanks,
    -David.

    If you simply put your cursor on a SELECT statement and press F!, you'll get your answer very quickly.
    Rob

  • Siri won't dial numbers starting with "0"

    Am on 5.0.1.
    I have a number for a contact stored as starting with 019 (it's a low cost long distance carrier pre-fix). Siri says dialling and then says can't call this number. Even if I dictate the number, Siri refuses to dial any number starting with 0.
    Mighty frustrating......any work-srounds for this pls?
    Thanks

    I say "zero"....and Siri displays the number correctly but just doesn't dial. As mentioned above, the same number stored in the contact also doesn't get dialled.
    Not sure if this helps, but the total number (including the 019 prefix) is 15 digits long.

  • Need page numbers starting with chapter numbers.

    Hello  every one,
    I'm in the work of making  user manual with different autonumber paragraph headings.(eg.1.xyz,2.abc,......).I have applied a running head header and has to apply a footer with page number in the format paragraph heading autonumber. pagenumber.ie - 1.1,1.2,........and when  second paragraph heading starts it should be 2.1,2.2,.......i tried inserting variables like <chapnum>,<section num> but its not giving the desired o/p.How i can resolve this problem?
    Plz help me...

    crazdobe,
    If your goal is to restart the page numbering inside a single file, you are out of luck.
    Restarting page numbering with the beginning of a new section seems only useful if the heading of that section start at a new page; therefore you could just split the document for every new section and then control page numbering as you like.
    If I have misunderstood your requirement, please share more detail.
    - Michael

  • Insert numbers starting with one in each xml files sequentially

    The following is a sample of two of my xml files
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE article SYSTEM "abc.dtd">
    <article xyz>
    <front>
    <product>
    <citation citation-type="book" id="">
    </citation>
    </product>
    <product>
    <citation citation-type="book" id="">
    </citation>
    </product>
    </front>
    </article>
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE article SYSTEM "abc.dtd">
    <article xyz>
    <front>
    <product>
    <citation citation-type="book" id="">
    </citation>
    </product>
    <product>
    <citation citation-type="book" id="">
    </citation>
    </product>
    <product>
    <citation citation-type="book" id="">
    </citation>
    </product>
    <product>
    <citation citation-type="book" id="">
    </citation>
    </product>
    </front>
    </article>
    This is my source code
    public class ReadTexFile
         public void Go2Directory(String Directory)
                    File scan = new File(Directory);
              String DirList[] = scan.list();
              try
                   for(int i = 0; i < DirList.length; i++)
                        File ChkDir = new File((new StringBuilder()).append(scan.getPath()).append("\\").append(DirList).toString());
                        if(ChkDir.isFile())
                             dum1 = ChkDir.toString().toUpperCase();
                             if(dum1.lastIndexOf(".XML") > 0)
    String ExecFile = ChkDir.toString();
                                  File TexfileName = new File(ExecFile);
                                  ReadFileContent(TexfileName);
                                  fileCount++;
                             if(!ChkDir.exists())
                                  System.out.println((new StringBuilder()).append("NO FILES FOUND IN THE DIRECTORY").append(scan).toString());
              catch(Exception e)
                   System.out.println((new StringBuilder()).append("The Error Is in ").append(e).toString());
         public void ReadFileContent(File TexFile)
    try
                   BufferedReader br = new BufferedReader(new FileReader(TexFile));
                   String fetchline = "";
                   for(String line = ""; (line = br.readLine()) != null;)
                        fetchline = (new StringBuilder()).append(fetchline).append(line).append("00000000").toString();
                   br.close();
    cntr=1;
                   fetchline = RemoveIfAlreadyExist(fetchline);
                   fetchline = fetchline.replace("00000000", "\n");
                   File tmp = new File(TexFile.getParent(), "XmlFileTmp.xml");
                   BufferedWriter bw = new BufferedWriter(new FileWriter(tmp));
                   bw.write(fetchline);
                   bw.flush();
                   bw.close();
                   File org = new File(TexFile.getAbsolutePath());
                   System.gc();
                   tmp.renameTo(org);
              catch(IOException ioe)
                   System.out.println((new StringBuilder()).append("The IO Exception occured because ").append(ioe.getMessage()).toString());
              catch(NullPointerException npe)
                   System.out.println((new StringBuilder()).append("The Null Pointer Exception occured because ").append(npe.getMessage()).toString());
         public String RemoveIfAlreadyExist(String line)
    String res = "";
    int cc=1;
              Pattern Regex = Pattern.compile("<product>00000000<citation citation-type=\".*?\" id=\"\">");
              for(Matcher RegexMatcher = Regex.matcher(line); RegexMatcher.find();)
                   String chkEntity = RegexMatcher.group();
                   String subchkEntity1=chkEntity.substring(0,chkEntity.lastIndexOf("\">"));
                   String s1 = Integer.toString(cc);
                   if(s1.length()==1)
                        res = line.replace(subchkEntity1,subchkEntity1+"ref00"+cc+"");
                   if(s1.length()==2)
                        res = line.replace(subchkEntity1,subchkEntity1+"ref0"+cc+"");
                   if(s1.length()==3)
                        res = line.replace(subchkEntity1,subchkEntity1+"ref"+cc+"");
    cc++;
              return res;
    My output from my code is
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE article SYSTEM "abc.dtd">
    <article xyz>
    <front>
    <product>
    <citation citation-type="book" id="ref002">
    </citation>
    </product>
    <product>
    <citation citation-type="book" id="ref002">
    </citation>
    </product>
    </front>
    </article>
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE article SYSTEM "abc.dtd">
    <article xyz>
    <front>
    <product>
    <citation citation-type="book" id="ref004">
    </citation>
    </product>
    <product>
    <citation citation-type="book" id="ref004">
    </citation>
    </product>
    <product>
    <citation citation-type="book" id="ref004">
    </citation>
    </product>
    <product>
    <citation citation-type="book" id="ref004">
    </citation>
    </product>
    </front>
    </article>
    But I need my output as
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE article SYSTEM "abc.dtd">
    <article xyz>
    <front>
    <product>
    <citation citation-type="book" id="ref001">
    </citation>
    </product>
    <product>
    <citation citation-type="book" id="ref002">
    </citation>
    </product>
    </front>
    </article>
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE article SYSTEM "abc.dtd">
    <article xyz>
    <front>
    <product>
    <citation citation-type="book" id="ref001">
    </citation>
    </product>
    <product>
    <citation citation-type="book" id="ref002">
    </citation>
    </product>
    <product>
    <citation citation-type="book" id="ref003">
    </citation>
    </product>
    <product>
    <citation citation-type="book" id="ref004">
    </citation>
    </product>
    </front>
    </article>Could anyone please tell me what modifications to do in my code.

    Hi sony,
    Since you are trying to replace the pattern of subchkEntity1,
    it replaces all the lines which contain ("<citation citation-type="book" id=")
    including(...id="refxxx...)
    & not ("<citation citation-type="book" id="") alone.
    So ,to eliminate this, we have to match the string with chkEntity &
    replace only the first occurance.
    I've modified the method RemoveIfAlreadyExist.
    It works fine now.
    public String RemoveIfAlreadyExist(String line)
             int cc=1;
              Pattern Regex = Pattern.compile("<product>00000000<citation citation-type=\".*?\" id=\"\">");
              for(Matcher RegexMatcher = Regex.matcher(line); RegexMatcher.find();)
                   String chkEntity = RegexMatcher.group();
                   int lastIndex = chkEntity.lastIndexOf("\">");
                   String subchkEntity1=chkEntity.substring(0,lastIndex);
                   String s1 = Integer.toString(cc);
                   if(s1.length()==1)
                        line = line.replaceFirst(chkEntity,subchkEntity1+"ref00"+cc+"\"");
                   if(s1.length()==2)
                        line = line.replaceFirst(chkEntity,subchkEntity1+"ref00"+cc+"\"");
                   if(s1.length()==3)
                        line = line.replaceFirst(chkEntity,subchkEntity1+"ref00"+cc+"\"");
                            cc++;
              return line;
         }

Maybe you are looking for

  • Installing Adobe Photoshop Elements 9

    I have the CD version of Adobe Photoshop Elements 9. When I put disk 1 into my PC, 2 options appear: 1) Open folder to view files. 2) Take no action. I have tried both of these, but only #1 does something. It opens my files and shows Adobe Photoshop

  • Barcode scanner connection to sap bo

    hi all, i am currently working on a project where a pdf-barcode is scanned on goods issue. this process has to be implemented in sap bo. i would like the barcode data, namely the serial numbers, when scanned, to be displayed on a form. since there is

  • Problem when open external link (Adobe LiveCycle ES2 workspace) with iView

    Dear all, I would like to know what EP doing when I use the iView to open a external application link. We setup the link to open in a new windows, but we find that the application behaviour is difference compare to input the link into the brower dire

  • Once installed it will not open

    i installed iphoto '11, after installation it will not open.  It seems like it wants to open but the icon merely continues in a circle and does not open,

  • Google links to Ad Sites and unrequested audio plays in background

    1) When I click on links from Google searches it redirects to Ad websites... 2) When I have Internet windows open suddenly audio (that sounds like it is coming from other unopened websites) will start playing.