Regula expression question

If I want to replace everything in a string that is between two spaces. I can do:
There is a space before the d and after the f.
  1  select regexp_replace('abc def ',' [^ ]+ ','!')
  2* from dual
SQL> /
REGE
!defHow do replace only digits, [:digit:] 012345789 between 2 spaces?
Edited by: Guess2 on Mar 16, 2012 12:48 PM

Hi Guess2,
Perhaps you just want:
select replace('abc def ',' ')
from dual;See this:
SQL> select replace('abc def ',' ') as repl
  2   from dual;
REPL
abcdef
SQL>So, as you see, it's not necessary, in the case you have, to use regexp_replace. But, if you want absolutely to use regexp_replace, you can issue:
SQL>  select regexp_replace('abc   def ',' ') as repl
  2   from dual;
REPL
abcdef
SQL>Is abcde the output you wanted from your initial string?

Similar Messages

  • Reguler expression for textInput

    How to restrict text input using reguler expression for First character is only in [a-zA-Z ].
    Ex.  AG67587
          adhsgfdsfg
          a78878

    you could use this
    http://stackoverflow.com/questions/1679886/text-input-restrict-in-flex3-air
    i don't like the idea of dynamically changing the restrict property though.
    you'll probably have to listen for the textInput or changing event and then manually test your regex and adjust the textinput.text property as appropriate.
    from the adobe docs for changing event
    Dispatched before a user editing operation occurs.   You can alter the operation, or cancel the event   to prevent the operation from being processed.

  • Reguler Expression

    Hi,
    Can anybody tell me some documentation to learn Reguler Expression.
    Thanks&regards,
    Chandan

    Regex Buddy is worth every penny. It even has a setting for Oracle regular expressions, as there many flavors of regex out there.
    Also, you can take a look at this package body as it's filled with regexp_substr and regexp_replace examples. The goal of that package is to transform Mediawiki markup into HTML, which might help you understand some of the procedures.
    Tyler

  • Resgular Expression question

    Hi guys. I am a java programmer for a couple of years now but I could never learn regular expressions in this or any other language. My problem is that I want to use String's replaceAll method to replace all HTML structures from a string. Actually, I want to remove all <*>, ie all character between the angular brackets (together with teh brackets of course). Does anyone have any idea how this is done with regular expressions?
    replaceAll method is defined as follows:
    String      replaceAll(String regex, String replacement)
    Replaces each substring of this string that matches the given regular expression with the given replacement.
    Thanks in advance

    Hi,
    public class Test {
         public static void main(String[] args) {
              String test = "<img src=\"blah blah\">hello</img> and so on <br>.";
              System.out.println(test.replaceAll("<[^>]*>", ""));
    }Kaj
    Ps.
    Native methods is not the correct forum for this kind of questions. You should have posted in Java programming.

  • 10G EXPRESS QUESTIONS

    I want to download and start using the free express edition of the db. Before doing so, I have several questions before getting started:
    1) I plan on downloading to, and using the db on, only one system. Which version do I need??? Do I need the server version, client version, or do I need both???
    2) I would prefer to download and use the db from a laptop versus a desktop. Any issues with that??? Of course, the laptop would be sized correctly.
    3) I would prefer to use the db on a Mac but see there is not a version for the Mac OS. Which is the better OS for this db, Windows or Linux???
    Thanks in advance for the help.
    JG

    I want to download and start using the free express
    edition of the db. Before doing so, I have several
    questions before getting started:
    1) I plan on downloading to, and using the db on,
    only one system. Which version do I need??? Do I
    need the server version, client version, or do I need
    both???The 'server' is the database. The 'client' is the software needed to get to the server (get to the database) across the network.
    You need the server at the least.
    If you want to access the database from other computers using something other than a browser, you need the 'client'.
    2) I would prefer to download and use the db from a
    laptop versus a desktop. Any issues with that??? Of
    course, the laptop would be sized correctly.I run Oracle XE on a laptop. 1GB RAM, 40GB disk, P4-2.2GHz laptop. I'm pretty happy.
    3) I would prefer to use the db on a Mac but see
    there is not a version for the Mac OS. Which is the
    better OS for this db, Windows or Linux???
    Which car is better - a Ford or a Chrysler?
    It really comes down to personal preference. The differences between Windows and Linux are not really all that great any more.
    And just like cars - just don't forget that eith has to be maintained. Regularly.
    Message was edited by:
    Hans Forbrich
    PS: I use Linux. But mainly because I've been using computers since the late 1960s and hate the hype around GUI.

  • Silly Base Station / Express question

    Hi. Silly Question... Is my Airport Express my Base Station? I've only got the Express and I can connect to the internet just fine. Or does Base Station refer specifically to the round flying-saucer looking thingy? That would explain why I can't see it listed in Airport Setup utility under the Base Station columns. I'm trying to make sure my Express is set up correctly to print, but I didn't specify having a printer when I set up the Wireless Network. Sorry about this, but it might just solve my problem. Thanks in advance. I promise I'll learn quickly.
    M
    Ibook   Mac OS X (10.4.2)  

    I'm not sure if it's a defective AX... just from my personal experience I had similar issues with 3 I needed to return.
    If I recall correctly, you only have 2 choices... either the AX acts as a base station or it's a client of another base station. I suppose it might be possible you had it set as a client and it's just picking up an open access point nearby.
    I would just try restarting the AX and your computer. If that doesn't work, maybe you could try a soft -> hard -> factory reset, in that order.
    Do you have an Apple Store nearby? If so, and none of the above works, you can always take it to the genius bar and they may be able to help.
    Curt

  • EL Expression questions

    Hi, I have two questions on the El Expression in the JSF:
    1)Can anyone link a El Expression (for JSF) references page?
    2)Can I use a El Expression (like the ternary selection operator) in action attributes or in actionListener or valueListener attributes?

    Link is here (for Tomcat EL - Classes and interfaces for the JSP 2.0 Expression Language API.)
    http://tomcat.apache.org/tomcat-5.5-doc/jspapi/javax/servlet/jsp/el/package-summary.html
    or
    http://java.sun.com/products/jsp/2.1/docs/jsp-2_1-pfd2/javax/servlet/jsp/el/package-summary.html
    for JSF 1.2
    BTW: Its not JSF EL but JSP specification
    EL can star from $ or #: $ is page context # is faces context, sometimes You can use $ for JSF tags, but not always, to implement such an operator check this: http://www.oracle.com/technology/pub/articles/cioroianu_jspapi.html
    But, for now, there is no way to have such an operator out of the box, You just cant't put this kind of logic to view layer

  • OSB Express questions

    Hi,
    I'm planning to use Oracle Secure Backup Express (OSB-XE) , described as license free with some limitations.
    i have some questions :
    1./ Does this free version allow me to use a Single Drive tape library (SAS ) attached to a server?
    2./ Would be possible to perform backup of all servers through the network from the central server that has the library attached?
    Our configuration is based in 3 servers with linux and one of the servers will manage the attached single drive library (or autoloader) , but we would like to know if OSB Express will be enabled to perform backup of more servers than the one where the software and drive resides.
    Also, has anyone experienced with this software and version? does anybody have any comments on functionality or usability?
    kind regards.

    Based on your environment, you would need to license OSB. The OSB-XE version supports backup of ONE host to a single attached tape drive. The licensing guide describes the differences between OSB and OSB-XE:
    http://download.oracle.com/docs/cd/E14812_01/doc/doc.103/e12836/toc.htm
    Donna

  • Regular Expressions - Questions to SME

    Ralph Benzinger presented an online meetup on the topic of Regular Expressions.  The presentation (slides only) can be found <a href="http://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/866072ca-0b01-0010-54b1-9c02a45ba8aa">here</a>
    Unfortunately the recording is not going to be available, but Ralph has been generous enough to agree to answer questions posted to this sticky thread.
    cheers,
    Marilyn

    Hello Peter,
    You're welcome!
    Alas, I was unable to locate the regex documentation on help.sap.com either.  In fact, I'm not even sure it has already been updated for 2004s.  I recommend that you use the online documentation within the system, e.g., from transactions SE38 or SE80.  Do an index search for "regex", and you'll be directed to REGEX, FIND and REGEX, REPLACE, both of which have extensive subsections on regexes.
    The class cx_sy_regex is an exception class that is thrown by FIND, REPLACE and cl_abap_regex in case of an invalid regex, such as ".\1" (there is no capture group that back reference \1 can refer to).  If the pattern is known statically, the syntax check will report this error, but for statements like "FIND REGEX pat IN text.", the actual pattern is only known at runtime.
    The cx_sy_matcher class (and its subclasses) similarly indicate some invalid states, for example trying to call "cl_abap_matcher->replace_found( )" when the matcher has no current match to replace (e.g., replace_found( ) called twice in a row).
    Please let me know if I can provide some additional information.
    Regards
    Ralph

  • [IPCC Express] Questions about database fields

    Hello,
    I'm developing some reports for Cisco IPCC Express.
    During the development, a lot of questions came out related to the definition of some fields:
    - In ContactCallDetail, what is the difference between transfer and redirect a call?
    - In ContactCallDetail, what is the difference between transfer = 1 and contactType=5? Both are related to transfering a call.
    I'll appreciate any help you can give me.
    Best Regards,
    Filipe Cruz - Portugal

    Where i can get that Enterprise Edition ?<br>
    here (click)<br>
    <br>
    does Express edition has Web based EM ?<br>Read the doc about Express Edition : Oracle Database 10g Express Edition<br>
    <br>
    Nicolas.

  • Expression questions

    In looking at the SQL that Toplink generates from the expressions one sees more joins than would be expected. Can somebody provide a reason for that ?
    Also would the usage of parentheses in the expressions make any change to the SQL that is generated ?
    I read in another post that Toplink only generates two children no matter how complicated the expression is. Can some explanation be given for this as well ? Does this impact how I design my expressions ?
    I dont have such a specific problem as such but answers to the above question would enhance my understanding of Toplinl

    In looking at the SQL that Toplink generates fromthe
    expressions one sees more joins than would be
    expected. Can somebody provide a reason for that ?Can you provide an example? The generated SQL is
    based on your mappings and on what you specify in
    your expression. For example, if you don't have
    indirection (lazy loading) turned on in a one:many
    relationship, then when you query for a 'one' you'll
    see a join between the table for the one and for the
    many.OK I will provide an example within the next couple of days.
    >
    Also would the usage of parentheses in the
    expressions make any change to the SQL that is
    generated ?Parenthesis in and of themselves don't affect the SQL
    but if you use parenthesis to change your query then
    yes, it will affect the SQL.
    I read in another post that Toplink onlygenerates
    two children no matter how complicated theexpression
    is. Can some explanation be given for this as well?
    I'm not sure what you mean by "generates". Can you
    give an example?
    Well I was referring to this post specifically. Can you tell me what that means exactly ?
    Re: Braces with ExpressionBuilder
    Why does Toplink process only two sub conditions at a time ?
    --Shaun                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Extreme/Express Questions

    I have encountered several interesting issues. I have an Airport Extreme dual band
    in my basement, and an Express (n) extending my network two floors up. I set it up
    this way to provide better connectivity to my g devices that are also two floors up.
    I have my new iMAC in the same room as the g devices and the Express. I also use the Express to stream itunes from my iMAC to my stereo. Both Airport devices are set to default values concerning n/g/frquency etc. I left them "as is" because the guys in the Apple store told me doing so would work best for my configuration.
    Here is the issue, this morning I had my PC laptop (n) 1 floor up from the Extreme
    (n) connecting to the internet at 17-18 Mbps (speedtest.net). My iMAC 2 floors up
    would only connect at 4-5 Mbps. No other devices were powered on at that time (g
    devices were off). I thought this was odd, so unplugged the Express. Speed tests on
    my iMAC then produced an 8-9 Mbps connection. I plugged the Express back in and the
    speeds decreased to 4-5 Mbps. I changed the Express to join the network rather than
    extend and the speeds on the iMAC increased to 8-9 Mpbs again.
    First question: Does the Express decrease network speeds when extending a network,
    even when only n devices are active? If not, have I configured something incorrectly? Is there a fix?
    I then moved my iMAC next to my PC laptop (one floor above the Extreme) and tried
    speed tests again. The PC consistently came in at 17-18 Mbps while my iMAC came in
    at 12-13 Mbps even though they were so close they could be touching.
    Second question: Do I have something configured incorrectly? I recognize that the
    speedt ests are not the best measure of network speed, but there definitely is a real
    difference here.
    Any help is greatly appreciated!

    1. You cannot connect a hard drive to the Airport Express USB port.
    2. The speed of wireless networking is faster than the speed of most cable internet services. Therefore, you won't notice any difference in your internet connection speed between (a) a cabled connection directly between Mac and modem or (b) a wireless connection between Mac and base station and modem.
    3. Apple has not published any specs on the speed of hard drive access for the Airport Extreme N Base Station. Several people have posted their own measurements (do a search in this discussion forum), and generally those results are not very good.
    4. Apple has not placed a limit on the number of drives you can attach to the Airport Extreme N Base Station (with use of a hub). How many do you want to connect?
    5. You cannot remotely sync an iPod using the Extreme Base Station.

  • Help: Regular Expression question??

    Hello,
    How can I extract the following content using Java Regular expression?
    <tr bgcolor="#333333">
         <td class="title" colspan="4" height="18"> <b>SUPER_1</b> - SUPER_2</td>
    </tr>
    <tr bgcolor="#333333">
         <td class="match-light" width="45" height="18"> </td>
         <td class="match-light" colspan="3" width="286" align="right">March 19 </td>
    </tr>
    <tr>
         <td colspan="4" height="1"></td>
    </tr>
    <tr bgcolor="#cfcfcf">
         <td width="45" height="18"> FT</td>
         <td width="118" align="right">SUPER_3</td>
         <td width="50" align="center"><a class="scorelink" target="details" onclick="showDetails();">999 - 888</a></td>
         <td width="118">SUPER_4</td>
    </tr>From the above contents, How can I define a regular expression for extract the "*SUPER_1*", "*SUPER_2*", "*March 19*", "*SUPER_3*", "*999*", "*888*" and "*SUPER_4*" ????
    Please help.
    Best regards,
    Eric

    Kayaman wrote:
    Why not use a better way than regex, like an actual HTML parser (or XML if you have it well-formed)? People seem to love parsing (or rather, asking help how to parse) HTML with regex for some unknown reason.Indeed.
    Read this (hilarious):
    http://stackoverflow.com/questions/1732348/regex-match-open-tags-except-xhtml-self-contained-tags/1732454#1732454

  • Aiport express questions

    Considering picking up an Airport express have 2 questions...
    1)Will this suffice as a primary device on a 1 story home for an iPhone and possibly a laptop?
    2)I want to buy the newer 802.11N version, how can I tell if I buy used on ebay or the like if it is the N version over the G? Aren't they both named Airport Express?
    Thank you.

    Welcome to the discussion area!
    +1)Will this suffice as a primary device on a 1 story home for an iPhone and possibly a laptop?+
    As you might imagine, it's impossible to predict results in advance due to the number of variables involved. In general, if you have line of sight or close to it, you'll have a good wireless signal. Most walls in an average home absorb 20-25% of the signal if you don't have line of sight. 2 walls is about the maximum in a "normal" home to maintain adequate signal strength.
    +2)I want to buy the newer 802.11N version, how can I tell if I buy used on ebay or the like if it is the N version over the G? Aren't they both named Airport Express?+
    The model number of the 802.11n version is A 1264. The model number of the 802.11b/g version is A 1084.

  • Apple TV 2 and Airport Express question?

    Hi, so I am new with all these apple tv and aiport express thing. I recently bought an apple tv and I wanted to out the audio to my 5.1 speakers in the room. Question. If the speakers in my room are connected on an airport express, then I play a video or movie (not just music, as i know music would work) will the sound stream thru my room speakers (connected to airport express) whilst the movie plays in the living room tv. Does it work that way? Video on my tv and sound streaming thru airport express connected speakers. I hope someone can help me.
    NOTE: I am just about to purchase the airport express, but before I do I have to make sure it works.

    You can't send video to one Airplay device and audio to a different one. Multiple Airplay devices used simultaneously for the same stream only works with audio. You can't do it with video nor can you split up the video and audio. You can connect the Apple TV to your 5.1 speakers if your receiver has HDMI or an optical input.
    It is possible to use an iOS device to watch video and send the audio to the Airport Express or Apple TV but this only works for all the 3rd Party apps since they support Audio Airplay but not Video Airplay.

Maybe you are looking for

  • Disable calls with video silently in jabber 9.2.6

    Hello, My company just bought Jabber 9.2.6 and as an application packager I was selected to create a package that installs Jabber completely silently. I have no problems with the installation but they gave me instructions to select the "Never start c

  • XML access to atributes and tag values at the same time

    Hi to everyone, I'm making some experiences with Flex, but I already have some experience with Flash and AS3. What I'm trying to accomplish, is to make a small application that uses webservices from the Weather Channel. The first part of the applicat

  • Down payment entry at MIGO

    Dear all, we are making down payment  with reference to PO line item & it is generating normal FI entry.But while doing MIGO it is generating another two line item for down payment.I am not able to understand this.we donot want this to happen at MIGO

  • Air play my mac through apple tv

    Can i get some help to pair my mac book pro and streaming it through airplay with apple tv? i went through settigs and then display and when it says show mirroring option ecc it is ticked in but nothing happened nothing appear above that as airplay o

  • Why can't I get a key for the Office Consumer Technical Preview now?

    So.. I tried for many times to get a key for my new office 16 technical preview but failed all the times. Now the office on my PC is running out of time. So I cannot use it now. How could I get a key to let it work?