How to get the opposite(not true) of a pattern using Regexp_replace

Hi,
In the following simple sql query....all occurences of 'a' are replaced by the next character...
SQL> select regexp_replace('Palaio Faliro','[a]{1}') from dual;
REGEXP_REPLACE('PALAIOFALIRO',
Plio FliroIs it possible to get the opposite of this pattern... namely except for the 'a' character , all others to be replaced by their next character in the above string....
So , to get....aaa(i think... as only the 'a' character is not going to be replaced...)
Thanks...
Sim

scott> select regexp_replace('Palaio Faliro','[^a]{1}') from dual;
REG
aaa

Similar Messages

  • HT1529 If I do not have the macbook with me and in the bill is not writing? How to get the Serial Number true Itunes?

    If I do not have the macbook with me and in the bill is not writing? How to get the Serial Number true Itunes?

    https://support.apple.com/kb/HT2526

  • How to get the list of communities of a user using EDK

    Hello,
    I am developing a portlet which needs to get the list of communities in which the logged-in user is a member. I am using EDK 5.0.1.
    I can't find a way to retrieve this information using the EDK I am using.... Would you please help?
    Thank you in advance.

    Hey Ramy,
    A bit off the top of my head, but try this:
    IPortletContext PortletContext;
    IRemoteSession PTSession;
    PortletContext = PortletContextFactory.CreatePortletContext(Request, Response);
    PTSession = PortletContext.GetRemotePortalSession();
    privatevoidgetCommunities()
    IObjectManager Manager = PTSession.GetObjectManager(ObjectClass.Community);
    IObjectQuery Query;
    Query = Manager.QueryObjects(-1, 0, -1, ObjectProperty.Name, true);
    for(inti = 0; i <= Query.GetRowCount() - 1; i++) {
    string sCommunityName = Query.GetRow(i).GetName();
    string sCommunityID = Query.GetRow(i).GetID().ToString();
    Cheers!John

  • How to get the number of bytes at ethernt port using tcp/ip?

    I have data with variable sizes.I am getting the data from another sytem using software C.
    How can I get the exact number of bytes coming at the port before using the read command so that the no. of bytes at port has to be given as the input to the tcp read vi?

    Philippe_RSA wrote:
    So may responses saying your question is wrong..... typical of this site, and no decent answer after 5 years !
    The answer I have used is to use a call library function:
    short int ioctlsocket(unsigned long socket, unsigned long fionread, unsigned long *len);    
    where fionread is a windows defined constant =  4004667F
    The socket can be obtained from using the       TCP Get RAW NET OBJECT.vi   which comes with Labview (even as far back as version 7).
    Good luck.
    A protocol requiring such a hack is IMHO very poorly designed. You should always have some way on the wire to determine the data stream size. If the data is fixed size that would be inherent to the protocol, if it's variable sized there should be a fixed size header or a known message termination indication that can be used to determine how to read the rest of the message.
    As a side node, I do consider the existence of VISA Bytes at Serial Port a big error, and that is most likely where this question originally came from. Use of "bytes at port" to decode a protocol will ALWAYS lead to protocol errors sooner or later, and code that is unneccessarily complicated to force the routine to deal with the asynchonous reading of the "bytes at port" into the protocol decoding.
    If a protocol can't be decoded with fixed size reads, fixed size reads with following variable size reads determined from information in the header, or a specific message termination indication, then it is very badly flawed.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • How to get the size of 'MyComponent'  when it is used in another place ?

    'My component' is JPanel based ( for example)
    I find problems to use the real size of MyComponent ( the size it has at the destiny)
    In 'Initialize' this.getheight gives me the size of the component by itself
    Must I use 'paintComponent' to know the real size or where ?
    By other side, must I count 2 paintComponent() ( the first 2 times paintCompnent is called by the 'system' , one for width and one for height ) to make sure the component is already drawed ?
    Thank you

    Yes, very simply :
    import javax.swing.JPanel;
    import java.awt.Rectangle;
    import javax.swing.JLabel;
    public class Wdes extends JPanel {
         private static final long serialVersionUID = 1L;
         private JLabel jLabel = null;
         public Wdes() {
              super();
              initialize();
         private void initialize() {
              jLabel = new JLabel();
              jLabel.setBounds(new Rectangle(8, 45, 268, 24));
              jLabel.setText("hello : mi size at destiny container is :");
              this.setLayout(null);
              this.setSize(300, 117);
              this.add(jLabel, null);     
              public void paint(Graphics g) {
              System.out.println("paint"+this.getWidth()+ " "+ this.getHeight());
         public void paintComponent(Graphics g) {
              System.out.println("paintcomponent"+this.getWidth()+ " "+ this.getHeight());
    }As you can see I have A Jlabel : jLabel.setText("hello : mi size at destiny container is :");
    Ok, I put this bean onto my application and I give it the size desired.
    I can use paint or paintcomponent to know my real size , isn't it ? ( and please forget my initial condition of 2 paint events ... -simply I come from VB ...- )
    Is there another way ?
    And, I dont know what is happen but in this example only work paint ( paintComponent does not )
    ( If i want to use paintcomponent I have to delete paint , isn't it ? )
    Thanks

  • How to get the inserted row primary key with out  using select statement

    how to return the primary key of inserted row ,with out using select statement
    Edited by: 849614 on Apr 4, 2011 6:13 AM

    yes thanks to all ,who helped me .its working fine
    getGeneratedKeys
    String hh = "INSERT INTO DIPOFFERTE (DIPOFFERTEID,AUDITUSERIDMODIFIED)VALUES(DIPOFFERTE_SEQ.nextval,?)";
              String generatedColumns[] = {"DIPOFFERTEID"};
              PreparedStatement preparedStatement = null;
              try {
                   //String gen[] = {"DIPOFFERTEID"};
                   PreparedStatement pstmt = conn.prepareStatement(hh, generatedColumns);
                   pstmt.setLong(1, 1);
                   pstmt.executeUpdate();
                   ResultSet rs = pstmt.getGeneratedKeys();
                   rs.next();
    //               The generated order id
                   long orderId = rs.getLong(1);

  • I have an Apple16 GB with BT Yahoo home pad that had a small box to let me go to mail and another for  weather and below them I had my local weather in box,somehow I have erased them and don't know how to get the back ,not very good with computers.

    I have an Apple16GB with BT Yahoo home page which had a box for mail and weather and further down I had my local weather, I have touched something and lost these boxes and my home page has changed  and I would like to get it back as it was. I have to admit to being useless at computers although I love my I Pad. 

    Is this the website that you are looking for? According to the very little bit of research that I did on this before responding to you, there have been changes made to the website and to the way that works ...if I read everything correctly.
    http://home.bt.com/
    Did you have a shortcut to the website on your iPad home screen? If that is what you want to create again, navigate to that website in Safari and then tap the arrow icon next to the address/URL field at the top of the Safari toolbar. Form the window that will pop up, select - Add to Home Screen. That will put an icon on your home screen that will allow you to open directly to that page in Safari when you tap on it.

  • How to get the refreshed data from Input schedule while using evsnd

    Hi Experts,
                     I am using EvSnd function for sending the data from a Input schedule.
    Acc                Value                                            
    xx----
        xy------        10
        xz-------       20
    these above cell value 10,20 are getting sent by evsnd function which is written in different cell.
    Now after successfully sending, how I can see these are also getting refreshed, like in Evdre
    Acc                Value                                            
    xx----
            30
        xy------        10
        xz-------       20
    Thanks
    Anupam

    Thanks my friend.
    But the point is I need to show the updated data for all the cells (for xx, xy,xz). The point is if I use the evsnd then after the data has been sent, those two cells xy & xz will be blank once again. And so if the user will not be able to check what the data they have sent for these member from that sheet.
                  They have to get a report which will show the figures.
    And we can't even use the evgts in the xy/xz cell as the formula is going to be erased as soon as the user enter the data in that.
    so how we can do the sheet similar to evdre ip schedule..where after every data send the cell range shows latest data.

  • How to get the list of parameter and set them using RESTFul WS for a Crystal Report

    Hi All,
    I am able to schedule a Crystal report using following POST Restful call - http://localhost:6405/biprws/infostore/4738/scheduleForms/now and with a request xml body. But report is failing because I am not passing the parameter.
    But I need pass parameters/prompts to the Crystal report to execute successfully.
    What is the request XML to pass the parameter  for the report?
    I was able to do this for WEBI reports but I am not able to find any way to do this for Crystal reports?
    Any help on this matter is really appreciated.

    Hi Venki
    Please have a look at:
    How to pass parameters and generate the report using RESTful API in VB.net
    This is also described in the Developer Help files:
    http://help.sap.com/businessobject/product_guides/sbo41/en/sbo41_webi_restful_ws_en.pdf
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • How to get the return value of a LOV item using javascript

    Hello,
    I am trying to put an onchange attribute in the HTML Form Element Attributes field of a LOV item. The javascript should access the new return value of the item. How is this done ? All the methods I have tried give only the display value, not the return value. For example $v() returns the display value.
    Tiina

    If your item is called P1_ITEM this will give you the return value of a popup (displays description,returns key value)
    alert($x('P1_ITEM_HIDDENVALUE').value)
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • How to get the WHOLE xml document inside a string using XSLT mapping

    Hi folks,
    I have a deep xml structure that I want to embed as body, tags included, in a mail message (not as an attachment).
    I'm trying to use Michal's method in this blog
    /people/michal.krawczyk2/blog/2005/11/01/xi-xml-node-into-a-string-with-graphical-mapping
    However, I can't get it to deliver the entire structure instead of just specific elements.
    Any help is greatly appreciated,
    Thanks,
    Guy

    Ashok,
    I was able to work it out for my case.
    This XSL......
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:template match="/">
    <inside>
    <namestring>
    <xsl:text disable-output-escaping="yes"><![CDATA[<![CDATA[]]></xsl:text>
    <xsl:copy-of select="outside/name/*"/>
    <xsl:text disable-output-escaping="yes"><![CDATA[]]]]></xsl:text>
    <xsl:text disable-output-escaping="yes"><![CDATA[>]]></xsl:text>
    </namestring>
    </inside>
    </xsl:template>
    </xsl:stylesheet>
    ...will transform this input....
    <?xml version="1.0" encoding="UTF-8"?>
    <outside>
    <name>
    <nameone>name1</nameone>
    <nametwo>name2</nametwo>
    <namethree>name3</namethree>
    </name>
    </outside>
    ...and put the whole lot into the CDATA element.
    Hope this helps you,
    Guy

  • How to get the values in a single row without using union

    Hi,
    I have a table with the following structure and data
    empid     address     phoneno     emailid
    1001     xyz          
    1001          1234234     
    1001               [email protected]
    1002          23434     
    1002               [email protected]
    1003     abcd          
    1003               [email protected]
    1004               [email protected]
    I need to have a result in this format.
    emp id     address     phoneno     emailid
    1001     xyz     1234234     [email protected]
    1002          23434     [email protected]
    1003     abcd          [email protected]
    1004               [email protected]
    I can do it using union however that gives a performance issues with a large table. So I wish to do using in any other way using lead or something, but with the complexity about the data, I couldn't do it.
    Can anyone please help me?
    Natarajan
    Edited by: Nattu on Dec 3, 2009 3:50 PM

    Select employee_id, max(address), max(phone), max(email)
    from emp
    group by employee_id;Max

  • How to get the notes

    Hi Gurus,
    Can u plz let me know how to get the desired notes from SERVICE.SAP.COM/NOTES, am not getting the proper notes its just giving notes No. and when search the notes from tat perticular No. its just giving, hte overview.
    Thanks & Regards
    Syed..

    Hello,
    I am providing the direct link here. Click and give SUser Name and Passwd.
    https://websmp109.sap-ag.de/notes
    In this window, Right Side you can enter direct Note number and also,
    You can search and find appropriate solution/Notes.
    Note: Points always encourage me to reply !!

  • How to get the class name of a page in oracle apex

    Hi All,
    Can anyone please let me know how we can get the class name of a page or region in oracle apex? I would also like to know how we get the DOM object ID for particular item.
    I appreciate any help on this.
    Regards
    Raj

    RajEndiran wrote:
    Can anyone please let me know how we can get the class name of a page or region in oracle apex?What do you mean with class name? The name of the template (e.g. the css style class name)?
    I would also like to know how we get the DOM object ID for particular item.Use firebug or inspect the source code of the rendered page to see the object IDs. Other then then, the typical ID of page items is the name of the item. For regions you can set your own ID.

  • How to get the Query output to Excel

    Hi ,
    Can you tell me how to get the Query output to excel with out using any third party tool?
    Can you tell me how to write the code in Webservice and call it..
    Please explain it Elaboartly..
    Thanks in Advance!!!
    Mini

    whats your source system?
    you can use Live office, or query as a webservice if you are getting data from universe
    if you're getting data from SAP BI query and you have a java stack on your netweaver then you can get the data directly using sap bi connector in xcelsius.
    good luck

Maybe you are looking for

  • If I buy a iPhone 5 at the store, will it still be running iOS 6 or 7?

    I want to buy the iPhone 5 (not the iPhone 5s or c) because it has iOS 6 on it instead of iOS 7 (which I do not like) and wondering if the people at the store still have the iPhones that run iOS 6 on them. Thanks!

  • How do you change the page that a tab opens to?

    my tabs are opening to a blocked website and I want my tab window to open on my home page.

  • ICal fails to launch on all user accounts

    Hi, After a major crash I had to repair my PowerBook G4's disk with DiskWarrior. Since the crash (both before and after DiskWarrior repair), iCal stopt working on all user accounts. What should I do? Crash report as follows: Process: iCal [241] Path:

  • User status change document

    There is a requirement , the project will be created and then a user status will be changed in 5 steps as the project goes through approval process and at the end of the process the project will be released. I want to tract down the entire process of

  • BB Desktop woes

    My PC is an HP laptop that I bought new with Vista on it, it's about a year old and current with updates. I recently received my new Sprint Curve and attempted to install the BB desktop software. The installation was very slow and the Roxio media sof