Substring to extract only the charahters in the same position

You are looking for a function to regex replace characters in odd position for null value.

example:

Input string = "1213441516871819"

string output = "23456789 '.

Oracle 11.2 version

Thank you

He needs a little more to deal with odd length strings...

SELECT REGEXP_REPLACE (' 123 ', '.) (.) |.', '\1')

DOUBLE;

Basically, that is to say "get two characters and give me the second or if you fit to 2 characters, then replace just one character and replace it with nothing.

Tags: Database

Similar Questions

  • How to take the new start of table in the same position as the previous and only randomize the newObjec

    So I'm trying to do 5 boxes/ships (3Blue and 2 Greens) appear in a random position (1-Gree, 2nd - blue, blue-3rd, 4th-green, green-5 or some other random way) I have the corner of the stage. Bring down. Make a new 5 boxes and position them on the same position the previous 5 and only get randomized (not with the 5 previous, it does at the moment). And that then they move down.  so far code I have is:

    import flash.events.Event;

    var shipCount:Number;

    var shipCount2:Number;

    var shipArray:Array = new Array();

    var shipArrayPosition:Array = new Array();

    var count: int = 0

    var positionsX:Array = ["50" "100", "150", "200", "250"]

    addEventListener (Event.ENTER_FRAME, everyFrame)

    function everyFrame(ev:Event):void {}

    counter ++

    If (counter % 70 == 0) {}

    doShips()

    }

    positionShips()

    trace (shipArray.length)

    }

    function doShips() {}

    shipCount = 3;

    shipCount2 = 2;

    var distance = 10;

    for (var i: int = 0; i < shipCount; i ++) {}

    var s = new ship;

    shipArray.push (s);

    s.x = s.width/2 + (s.width* i) + gap * I

    addChild (s)

    shipArrayPosition.push (s);

    }

    for (var j: int = 0; j < shipCount2; j ++) {}

    s = new Ship2.

    shipArray.push (s);

    }

    var array: Array = new Array();

    While (shipArray.length > 0) {}

    var: index: uint = Math.floor (Math.random () * shipArray.length);

    Array.push (shipArray [index]);

    shipArray.splice (index 1);

    }

    shipArray = array;

    shipsArray has been randomized

    for (var k: int = shipArray.length - 1; k > = 0; k-) {}

    shipArray [k] .x = positionsX [k]

    addChild (shipArray [k])

    }

    }

    function positionShips() {}

    for (var i: int = shipArray.length - 1; i > = 0; i--) {}

    shipArray [i] .moveDown (//what) code in the class of the ship and Ship2-> only: this.y += 3

    }

    }

    and how to stay in one position. Must not move in any position x when the 5 new are added

    It is even more effective, because it removes the ships that moved out of sight:

    import flash.display.MovieClip;
    import flash.display.Sprite;
    import flash.events.Event;
    
    var numShips:int = 5;
    var shipCount:int = 3;
    var shipArray:Vector. = new Vector.();
    var counter:int = 0
    var positionsX:Array = [];
    
    init();
    
    function init():void
    {
              // populate positions
              for (var i:int = numShips - 1; i >= 0; i--)
                        positionsX.push(50 * i);
    
              addEventListener(Event.ENTER_FRAME, everyFrame);
    }
    
    function everyFrame(e:Event):void
    {
              counter++
              if (counter % 70 == 0)
                        doShips();
              positionShips();
              trace(shipArray.length);
    }
    
    function doShips():void
    {
              var gap = 10;
              var s:MovieClip;
              var shipsLine:Sprite = new Sprite();
              shipsLine.cacheAsBitmap = true;
              addChild(shipsLine);
              shipArray.push(shipsLine);
              shuffle(positionsX);
              for (var i:int = numShips - 1; i >= 0; i--)
              {
                        s = i < shipCount ? new Ship() : new Ship2();
                        s.x = positionsX[i] + gap;
                        shipsLine.addChild(s);
              }
              shipsLine.y = -shipsLine.height;
    }
    
    function shuffle(a:Array):void
    {
              for (var i:int = a.length - 1; i >= 0; i--)
              {
                        var r:int = Math.floor(Math.random() * (i + 1));
                        var t:Object = a[r];
                        a[r] = a[i];
                        a[i] = t;
              }
    }
    
    function positionShips():void
    {
              for each (var shipLine:Sprite in shipArray)
              {
                        shipLine.y += 3;
                        // remove line that moved out of stage
                        if (shipLine.y > stage.stageHeight + shipLine.height)
                        {
                                  removeChild(shipLine);
                                  shipArray.splice(shipArray.indexOf(shipLine), 1);
                        }
              }
    }
    
  • How can I get Firefox back to the same position on the web page

    How can I configure Firefox to return to the same position on the web page

    Wait until Firefox finishes loading web page. Then it will be automatically the position value when you were leaving the web page

  • When I create two keyframes at the same position between keyframes at different positions this way adds a loop. How can I get rid of the loop?

    When I create two keyframes at the same position between keyframes at different positions this way adds a loop. How can I get rid of the loop? I was just by dragging the handles on the vertex point, but I want to get rid of the loop together.

    Focus on the Bezier handles on the motion path in the Composition window. You can select the tool pen (g) and hold down the Alt/Option key to select the tool convert Vertex (it looks like a V on the side) and then fix the handle manually or click on the top of the trajectory to change it to a straight line. You can also play with spatial interpretation Keyframe.

    To avoid this, you can change the interpolation of keyframes in space to linear preferences. Most of the time I don't like straight so I keep my default value of Bézier.

  • Because between two keyframes with the same position, there is movement?

    Because between two keyframes with the same position, there is movement?

    This would be due to the influence or speed?

    Quick glance:

    1. image: 'x' is 384px

    Capturar.PNG

    2 image: 'x' is 387px

    Capturar_2.PNG

    3. picture: 'x' is 384px

    Capturar_3.PNG

    Keyframes to which I refer are selected in the middle.

    Photo.PNG

    There is a change in the balance between two key frames that are in the same position, without keyframes between them.

    FAQ: Why my layer (camera) moves backward between the keyframes value equal?

  • Drop columns and how to add them in the same position

    Hello

    My requirement is I want to delete columns in existing table and later, when I want to add these columns to the same position.

    (1) create table t_emp

    create table t_emp)
    EmpNo varchar2 (10) primary key,.
    Ename varchar2 (100),
    desig varchar2 (100),
    VARCHAR2 (100) Dept.
    number (10,2)) of salary;

    (2) a fall the columns below.

    ALTER table t_emp
    drop (desig, dept);

    (3) add these columns.

    ALTER table t_emp
    Add (desig varchar2 (100),)
    VARCHAR2 (100)) Dept

    (4) desc t_emp

    Now the order of the columns is changed, I want to bring to the initial position of columns, that is

    EmpNo, ename, desig, dept, salary

    I'm trying through some work around this, such as the use of a table of permutation. Please share your knowledge and what would be the apt method.

    Thank you.

    845956 wrote:
    Hello

    My requirement is I want to delete columns in existing table and later, when I want to add these columns to the same position.

    (1) create table t_emp

    create table t_emp)
    EmpNo varchar2 (10) primary key,.
    Ename varchar2 (100),
    desig varchar2 (100),
    VARCHAR2 (100) Dept.
    number (10,2)) of salary;

    (2) a fall the columns below.

    ALTER table t_emp
    drop (desig, dept);

    (3) add these columns.

    ALTER table t_emp
    Add (desig varchar2 (100),)
    VARCHAR2 (100)) Dept

    (4) desc t_emp

    Now the order of the columns is changed, I want to bring to the initial position of columns, that is

    EmpNo, ename, desig, dept, salary

    I'm trying through some work around this, such as the use of a table of permutation. Please share your knowledge and what would be the apt method.

    Thank you.

    column order does NOT elements.
    If you insist blindly, then create new table with columns ordered you want
    then move the data to the new table & finally to rename the tables.

  • How conervert psd to css and pixel-to-pixel measurement and positioning at the same position in dreamveaw

    How conervert psd to css and pixel-to-pixel measurement and positioning at the same position in dreamveawer?

    The basic answer is that you can't.  Graphics program can export your mockup in html format, but the result is so bad that people get to the top of the page of coding manually.

    The easiest way to convert your drawings into a working Web page is starting with models already included in your package CS6.  I advise to read the article by Steph at this link to help you get started quickly:

    http://www.Adobe.com/devnet/Dreamweaver/articles/css_simple_styling.html>

    G/L

  • Copy the selection to the same position in all frames roto

    I use AE CS5 in Production Premium. I also moca AE 3.1 which is perhaps a better way to try to isolate an object using planar tracking.  I need to replace an item that appears in the same position on all frames of a clip.  He is a previous problem I've covered long involving a spiders Web that has been set on a 8mm film door.  Thus, the web appears in the upper left corner of each image in the clip.  Perhaps a different approach will work.  It is complicated because the background of the element changes such as the limits of the selected item are dimmed.  I need to further isolate sections of the clip where there are similar background interference, for example a background of mostly from the dark trees in the left upper part may be passable.  There may be a way that I can gradually replace the web with the background that appears in the following images as the background moves using duplicate layers.

    How I can roto select this item in the first image and copy the limits of selection to all executives or is there a better way to do this?

    How I can roto select this item in the first image and copy the limits of selection to all executives or is there a better way to do this?

    You do not have. You think on bad terms here and work yourself to death if you follow this approach. Instead, export an image, isolate the model clean grey scale as an image in Photoshop. Then you can either use it as cache to perforate disturbances directly or by creating adequate transparency, possibly in a publication before using it as a pole of luma on a white solid, like an entry for one adjustment layer. Then, you can eitehr just fill in the blanks with a copy of your pictures that you have slightly shifted in position or in the second case, apply effects such as Minimax, dilated-eroded repetitive and varius scrambles to fill gaps. CC vector Gaussian with the transparency as input channel will do miracles "sew" these things together. Of course, you can also consider RevisionFX' RE: fill out as kind of a plugin tool in canned and pimp for these kinds of things...

    Mylenium

  • __How is a applies a layer of individual pshop on several files in the same position?

    __How is a applies a layer of individual pshop on several files in the same position?


    Here's an example - I 12 images of fruit bowl, and I want to put a separate image of an Apple (cropped) on the 12 in the same position (without zoom to the exact pixels)

    Thank you

    Hold down SHIFT and drag one doc to another. Or use the layer > duplicate and use the destination drop-down to select the good doc.

  • How can I do to two clips have the same position and scale?

    I just first Elements 10 today, since I'm doing a video for work. I am a seasoned videographer (I am a fairly successful YouTuber), but not with Adobe products. At home, I use Cyberlink PowerDirector 13 (although that is seriously considering moving to Premiere Pro), but for the moment at work I use elements since it is the program that they have.

    One thing that elements can do that PowerDirector is automatically align the clips at the same time. What I need to do, it's got a picture (do not fill the entire screen) suddenly cut to a similar picture of the same size and position, of the effect that the only part of the image changes. In my program to another, all I had to do was put them at the same time, change the shape of the Pic 1 how I want it, move the 2 Pic and do align on the same size and position, then move 2 peak after another in the timeline panel. However, items not the snap to each other, so I have no idea how to put them in the same size and position, one after the other.

    How can I do this? If this can be done in two elements or Pro, I'm going to have to Pro since I use this feature a lot.

    Thanks in advance!

    -Michael

    Michael

    First Elements 10 on what operating system? What video/graphics card your computer use? If NVIDIA GeForce, so we talk 10/NVIDIA GeForce display and other problems related specifically to first Elements.

    But, so far away that...

    Each clip on the Timeline of 10 elements first has a range of properties that contains a sign of movement. The expanded Motion Panel includes settings for the clip Position and scale. among other things.

    Position of two values... (___) (_) first from right to left and from left to right... second for up down or down the most.

    Have you been to the Palette of the 2nd clip properties to set its Position and scale values must match the first element?

    Have you been there and done that?

    Please read and review, and so let me know if I've targeted to what asked you. If this isn't the case, please specify where I missed what you were looking for.

    We'll rethink the situation if necessary and provide screenshots if necessary.

    Thank you.

    RTA

  • To attach the same position with different jobs and organization

    Hello

    I have a question, is it possible to attach the same with different position of work and organization.


    Thanks in advance

    I'm not completely sure what you're asking here. A position is limited to a job and an organization, and this post work and the organization can never be changed. If you want to change the work or the Organization on a post, you must create a new post that is a copy of the former with the update of work or organization.

    When you're picking this position in the form of missions that are assigned by default in the Organization and work on the allocation of the position. Similarly, if you already entered work and org on the transfer you can choose only the positions that match this org and employment.

    Who is?

  • If necessary, scroll to the same position after the page navigation

    Hello

    I have a use case where I have an af:table and a full line. Now, when rolls the user down to a particular rank and click on to access the different page (DrillDown). Now when the user returns to the page, the scroll of the table position must be kept. As if I clicked on the 5th row in a range displays, it should be displayed as the 5th in the user interface.

    I use Jdev 11.1.1.7

    Please let me know if you need more details.

    Kind regards

    Chick.

    You can't possibly maintain accurate scrolling position (if I understand your question)

    As an alternative, you can modify your table to use paging: https://blogs.oracle.com/jdevotnharvest/entry/table_pagination_with_jdeveloper_11

    Dario

  • I want content to maintain the same position in the browser window, compared to the resolution of the screen

    Hello, I want to assure you that specific content remains relatively in the same place, regardless of the screen resolution (eg. regardless of the screen resolution, the content remains at the bottom of the browser). Instead, when I test my site to some different screen resolutions, the content disappears.

    Right-click on your footer items and make sure that ' footer element is activated.

  • How to fix multi phases at the same position (exp. left 0 top 0) in a page?

    For the solution "Bootstrapping animate Compositions" (Bootstrapping animate Compositions ' Adobe Edge leading Team Blog"), it shows a way of integrate several animated compositions in the same page, and to play 3 steps in order, I want to know if there is a way to play 3 steps in one place at any time (from start to finish)?

    my code does not work as follows:

    #StageA, #StageB, #StageC {}

    Width: 100%;

    height: 100%;

    left: 0px;

    Top: 0px;

    position: fixed;

    }

    can someone help me? Thank you.

    I already knew how to do this, you have change the structure of div as follows:

    Thank you!

  • Two wiggles in the same position of the camera

    Hello!

    I have a huge problem, which I suppose you can help me with, guys. So here it is:

    I use a wiggle in camera position expression:

    startFrame = framesToTime (492); stopFrame = framesToTime (670); easeOver = framesToTime (20); FREQ = 0.5; amp = 35; If ((temps > = startFrame) & &(time < stopFrame)) {if (time < startFrame + easeOver) linear (time, startFrame, startFrame + easeOver, value, wiggle (freq, amp)); if (time > = stopFrame - easeOver) (linear time, stopFrame - stopFrame, easeOver, wiggle(freq,amp), value); else wiggle(freq,amp) ;} value other}

    which wiggles basically the camera of the chassis 492 to frame 670 (with a bit of initial and final images mix). I would use the same expression for the same device and the position, which will begin at the 860 member and will end at 920, but... When I use the same expression, simply copy it into the existing: it uses essentially the second without the first.

    So my question is - how can we force them both to work for me?

    Thank you

    Harshit Bahl

    Designer

    http://suntechinteriors.com

    Hard: if set of statements for your expressions of dividing them into sections.

    Easy way: parent the camera for anal and apply the second expression for the No.

Maybe you are looking for