REGEXP_REPLACE works with several models?

Hi, im trying to do something like this:

with t as)

SELECT February 29, 2032 'dt', ^ (\d {2})(\d{2}) (\d {4}) $| ^(\d{2})-(\d {2})-(\d {4}) $ ' er, '\3\2\1' rep FROM dual

)

Select regexp_replace (t.dt, t.er, t.rep) in t;

According to the documentation should not be an impediment to use several reasons. However, this always returns NULL.

Any ideas?

Thank you.

This is exactly what im trying to do

I want to validate a date string regardless of date model used.

with t as)

SELECT February 29, 2032 'dt,' ^(\d{2})-(\d {2})-(\d {4}) $| ^ (\d {2})(\d{2}) (\d {4}) $ ' er, "\3\2\1\6\5\4" union rep1 double all the

SELECT '29022032' dt'^(\d{2})-(\d {2})-(\d {4}) $| ^ (\d {2})(\d{2}) (\d {4}) $ ' er, "\3\2\1\6\5\4" union rep1 double all the

SELECT '29022032' dt'^(\d{2}) [-/] *(\d{2}) [-/] *(\d{4})$ ' er, '\3\2\1' rep1 dual FROM - another way I found to do

)

Select regexp_replace (t.dt, t.er, t.rep1) in t;

Thank you Greg and Frank!

Tags: Database

Similar Questions

  • I've updated my Muse app to the latest version of July and since then my Muse forms do not work with several of my web hosting providers. Is this a case of the site not having host is not the latest version of PHP?

    I've updated my Muse app to the latest version of July and since then my Muse forms do not work with several of my web hosting providers. Is this a case of the site not having host is not the latest version of PHP?

    Please consult this document:

    Troubleshooting Muse form used on the servers of third party Widgets

    Thank you

    Sanjit

  • Smart txt reflow - how do you work with several text boxes?

    Hello

    I create ID cards to work, for 650 employees. I had used the reflow of text before smart on other jobs and I don't foresee any problems with its use for this project. To explain my problem:

    I'm doing a template with a trial of ten employees file. The design on each card, it is a name and a unique ID to be used. The name is 18pt and code 10pt.

    On my main page, I have a block of text for the name and a text block for the employee ID. The text blocks are as wide as the work plan but only high enough to adapt to a single name by image to the relevant point size.

    On the first page of my document, I select 'place' and then select the text file with all the names, I get the change of cursor in the image of the text, I hold SHIFT for the debit option and click on my name text box. InDesign automatically creates 9 new pages, and I now have a 10 page document. So far, perfect.

    I select "place" again, choose the employee code text file, click on my block of text in code used on the first page, and repeat the same process as above.

    My problem starts - I want codes for the employee to just flow through ten pages, as the names, but when I place the codes file and select the text on the first page, inDesign creates 10 new pages after the tenth page. So I find myself with 20 pages - the first ten pages with names and nothing in the code text boxes and the last ten pages with the codes but nothing in the name text boxes.

    I am at a loss as to why he does this. I was playing with the settings in the preferences, but nothing changes. I tried to select both the two text files and import at the same time.

    How do you work with several text boxes and several import of text file on a doicument? There are no extra spaces or something like that in my text files.

    I really don't want to have to link all text blocks - that will forever, but right now it's the only way I can get it to do what I want.

    Also, is there anyway to specify the font and the size of the text is important as? Because it keeps import as minion pro, even if the text boxes on the master are set to the correct font and size. Not a big deal though.

    Help, please! Any help is appreciated, thanks in advance!

    Ah, I think I misunderstood your original post and thought you wanted to do 10 badges per page. If it's only one, you need only a set of images. Same procedure for setting in place, but you have no need to screw anything or use the step and repaet to make copies.

    Place the file name in the frames of name and ID will add pages and then return to the first page and place the numbers. Just don't forget to put the bad slider in the space where the framework and to stay away from the guides (if you click on a guide, ID will ignore masters executives) and hold down the SHIFT key when you click.

  • work with several pictures in layers

    When I do a few pictures in layers, I can't get that one picture appears both on the layers panel. The tool used to exist - would like to know the name of it - is gone. It's a rectangle with 3 squares that it contains that allow me to show several pictures at the same time, so I could work with them. I lost several hours trying to understand this fundamental problem.

    I think you need to "Fix" under the Windows menu, then select one of the display options - assuming you're talking about separate photographs in Photoshop-like here where there are three open images. If you are talking about the images on separate layers in a single document, then only the visible surface layer will be displayed as it is 100% opaque and underlying layers are so hidden...

  • Panel of Dreamweaver shows 50 + errors in jQuery working with Bootstrap model

    Dreamweaver Panel 50 + errors in the jQuery file. I work with a bootstrap model.  File name: jquery - 1.11.2 I am trying to learn and don't know what to do next.

    You talk about mistakes of Linting, highlighted line numbers in view Code of CC 2015?

    If so (and you have not made changes to the jquery file) ignore the feature of Linting in DW is a little overzealous.

  • Maintain performance when you work with several shape layers (~ 50)

    Hey guys, I worked on a few recent projects where I need to animate a large number of shape layers cascading, adorning it, with different properties of the animation. When I arrived at the point of use of 30-60 shape layers or more, and they all sort of scale, position, animations etc, my computer slows down to a complete analysis. Then forces me to use a single shape layer and Repeater functions. These can work well, sometimes and not cripple the flexibility too, UNTIL you need to incorporate various colors. At this point, I usually spend my shape layers to masks and place a layer underneath with different colors according to the needs. Animations of form then show these colors, but it does not work for a complex object, which, in itself, requires a lot of colors. so...

    What type of workflow you all to work with more complex semi both objects? I say to myself that I must be missing something, because it's become really limit. Everyone works only with 256 GB of memory RAM?

    FYI, my computer specs are:


    6 core Intel Xeon 2 x 2.66 GHz

    32 GB 1333 MHz DDR3 ECC

    ATI Radeon HD 5870 1024 MB

    OS X 10.9.4 (13E28)


    Thank you!!

    Motorhomes can accelerate your insights if you use the disk cache, but there will be nothing to expedite your first ram preview or a ram preview after a keyframe to change except a better optimized system. All that it takes to slow things down is an effect or film file that causes the AE to begin to use the power of CPU and memory.

    As test I just created a gradient filled rectangle, added keyframes rotation, duplicate the layer so I have 64 copies on my Mac Mini and tried a preview ram from the same model with 1 single layer. Almost no difference in time it took to get an overview of 10 seconds. Thrown into a processing of scale for all layers and once again, not a lot of difference between the layer shape and 64. To make things much more difficult, I change the rectangle a polygon and animated everything in the transform properties starter, put in place a composition with 128 duplicates and a model with a single layer. 2.5 seconds for a ram in the quarter preview ground for a single layer, 10 seconds for a RAM Preview to 128 layers. It is more than acceptable for me for an old Mac Mini for two years with 16 GB of ram. Increase in the factor of 50% zoom with resolution set to Auto double the ram preview duration that was still acceptable.

    This makes me wonder what is happening in your composition. All the effects or other things going on? You have optimized your system for maximum performance? There are links with suggestions to do throughout this site as well as the recommendations of Adobe available here: after effects performance optimization

  • Work with several sequences-best practices

    Hello.

    I ve just started using Adobe Premiere CS6. My goal is to create a long movie, which is based on 30 hours of footage in raw gopro recorded on a recent trip of 2 hours.

    Now my question is, what is the best practice for working with many sequences/clips?

    You have a single file of heavy project, with all the clips?

    Or make you small chapters that contains number of sequences x/x minutes long and ultimately combine all these?

    Or how would you do it the best way, so its easier to work with?

    Thanks a lot for your help.

    Kind regards

    Lars

    I make a primary sequence in your project and then modify the individual scenes in the form of separate sequences, and then nest them in the primary sequence.

    That way, you would have a single file of project heavy with all the media files (raw video, music, etc.).

    I find it easier to work with. With the help of several project files would get too complex and fragmented throughout the of your computer.

    I work with a lot of video GoPro, so I wonder what your Setup looks like. What device you have, and how your computer/Premiere Pro is configured?

  • work with several images in windows paint.

    How to import pictures 2 of 'my images' in the media player in windows xp so that I can 'swap' faces on them using the feature of Windows paint?

    And how can I do this?

    Thanks for any help with this!

    How to import pictures 2 of 'my images' in the media player in windows xp so that I can 'swap' faces on them using the feature of Windows paint?

    And how can I do this?

    Thanks for any help with this!

    =======================
    Open 2 instances of MS Paint.

    With some work, this can be accomplished in
    MS Paint. Have a look at the following tutorials.

    Microsoft Paint: tools
    The selection tools
    http://www.lkwdpl.org/classes/mspaint/tools/selection.html

    MS Paint: tools
    The selection tool
    Example: Working with selections to combine two images.
    http://www.lkwdpl.org/classes/mspaint/tools/selectionex.html

  • I want this to work with several paragraphs

    Hi all

    I want this script to work with a selection of more of a paragraph. When I select more than one, it applies it to that in which I clicked.

    They gave me this script by a cool guy (Ken Grace) of the forum ID unfortunately I do not have scripts, or he does, but you do!

    Any help would be greatly appreciated.

    Here it is:

    IP = app.selection [0] .insertionPoints [0];
    ip.appliedParagraphStyle = "your_paragraph_style_name";

    App.Selection [0]. Paragraphs.everyItem () .appliedParagraphStyle = "your_paragraph_style_name";

    Peter

  • Work with several making clips simultaneously

    I have a live event that I recorded that has multiple cameras and audio angles. I have them sync successfully while a multicam clip, and now my question has to do with how to manage it.

    There is an audio angle that is a direct capture table of harmony, and I would like to be heard at any time. However, I also want some other angles audio to be heard at times.

    My hypothesis was therefore:

    Do drag the multicam clip in my project calendar and do it twice - one on the other. A multicam (low) value audio clip: soundboard. That supports the audio of the soundboard, so he plays at all times.

    Then on the other clip multicam, I can switch between sources of micro or cut, if necessary, throughout the project.

    The question I have is: I now have two copies of the video game on the other. I realize that only the top one will be seen, but does work FCPX twice as hard? For the multicam clip which is set to the audio source: soundboard, I actually don't need to play ANY video. I just want the soundboard audio! When I look at the angles, unfortunately, there is no way to disable the video for the multicam clip that is configured for the audio of the soundboard.

    Is there a more logical or easier way to do this?

    There is no need to put two copies of the multicam in the timeline panel. You can use audio from several angles in the same multicam.

    You can check this episode of MacBreak Studio where Mark Spencer explain how to use the audio components to a multicam:

    https://www.YouTube.com/watch?v=MkBKbHe03ag

  • Speech recognition in Windows 7 does not work with several sentences

    I use speech recognition with Windows 7 and Word 2010. In the past, it worked fine, but now it has developed several questions:

    1. When I say 'OK _', he responds with "this command is not available now.
    2. When I insert a period at the end of a sentence, it puts a space between the last word and the period.
    3. When I say "He went out", he responds with "this command is not available now.

    The only change I made is the upgrade to Office 2010, but I have Office 2010 on my laptop and it works fine there.

    Is there a way to fix the voice recognition program?

    I'm having the same problem.  Windows Speech recognition (WSR) IS NOT playing well with Office 2010.  A very disappointing setback because it appears to praise them to the improvement of the accessibility features THAT WSR will not dictate in Word 2010 without having to accept the text in the window on the other.  Very slow process is the result of the incompatibility and effectively stops to dictate.  :-(

    I have exactly the same problem, Word 2010 (32 bit on 64 bit systems) leaves me only the replacement window allows you to dictate text and many features learned during the training now work well in this mode.

    It really does not need speech recognition. However, there is no problem using the dictation in Internet Explore.

    To fix this (remove the dialog box) right-click on the translation of the speech tool, then go to options, then uncheck the "enable dictation Notepad '.

  • OAuth.create_client and oauth.update_client does not work with several names of privilege

    For our REST services we have implemented a number of privileges.

    Each right is defined for a number of roles.

    So, we have the same problem as described here: Client OAUTH with more of a privilege

    Documentation of OAuth (pdf) package differs from oauth package specification in the database.

    We run on Oracle Standard Edition 12.1.0.2.0 3.0.2.294.08.40 ADR.

    Test cases running in questions:

    Create:

    Meets the exception, because the privilege name table is not extended.

    Start (oauth.create_client)

    p_name = > 'oauth shop. "

    p_grant_type = > 'client_credentials ',.

    p_privilege_names = > ' shop, test,

    p_support_email = > ' mailto:[email protected] ');

    end;

    Update1:

    Meets no exception, but does nothing.

    declare

    l_privileges t_ords_vchar_tab: = t_ords_vchar_tab();

    Start

    l_privileges. EXTEND (2);

    l_privileges (1): = 'unique ';

    l_privileges (2): = 'test ';

    () OAuth.update_client

    p_name = > 'oauth shop. "

    p_owner = > 'YOUROWNER ',.

    p_description = > NULL,

    p_redirect_uri = > NULL,

    p_grant_type = > 'client_credentials ',.

    p_privilege_names = > l_privileges);

    end;

    UPDATE2:

    Meets the exception, because the privilege name table is not extended.

    Start

    () OAuth.update_client

    p_client_id = > 10626,

    p_name = > 'oauth shop. "

    p_editing_user = > "Change user"

    p_allowed_origins = > NULL,

    p_description = > NULL,

    p_redirect_uri = > NULL,

    p_support_email = > ' mailto:[email protected] ',

    p_support_uri = > NULL,

    p_priv_names = > ' shop, test ");

    end;

    OAuth.rename_client does not work that way.

    It doesn't do anything.

    We could not work around the problem by using only a privilege by client because there is a unique uri models as key constraint ' / shop / *' ADR on the scheme.

    In this way it is impossible to create multiple privileges (each for a certain role) access to the same uri scheme.

    Is this a known issue?

    After some trial and error, we found a solution to our problem!

    According to the documentation, you will need to define a privilege name when you create a customer. But OAuth clients who obtain access through access client identifying information flow do not need privileges. Thus, we create customers with privilege names set to NULL now.

    What we do is to grant to the customer a specific role that is defined for specific privileges.

    Here are the reasons why we didn't get the question earlier. The token you generate a client is linked to the privileges given to the customer at the time that the token is generated.

    We have updated privileges customer and used the same token expect a different result, which was not the case. The rights are tied to the token on the creation of a token.

    We found out about it today and tested two-legged oauth clients (with a flow rate of access client_credential) with no particular privileges and only granted roles. Given that the roles granted privileges everything works as expected.

    Still leaves the ORA-error when providing separated by commas in the names of privilege to oauth.create_client and oauth.update_client.

    But our problem is solved.

    For completion. Here's a sample script that solves our problem:

    -create roles

    begin ords.create_role ('role.shop'); end;

    begin ords.create_role ('role.test'); end;

    -Create privileges of the shop, models and roles

    declare

    l_roles owa.vc_arr;

    l_patterns owa.vc_arr;

    Start

    l_roles (1): = "role.shop";

    l_roles (2): = "role.test";

    l_patterns (1): = ' / shop/pk / *';

    l_patterns (2): = ' / shop/gk / *';

    () ords.define_privilege

    p_privilege_name-online "priv.shop."

    p_roles-online l_roles,

    p_patterns-online l_patterns,

    p_label-online 'Shop Privilèges',

    p_description-online 'Shop Privilèges'

    );

    end;

    -create test templates and roles privileges

    declare

    l_roles owa.vc_arr;

    l_patterns owa.vc_arr;

    Start

    l_roles (1): = "role.test";

    l_patterns (1): = ' / test / *';

    () ords.define_privilege

    p_privilege_name-online "priv.test."

    p_roles-online l_roles,

    p_patterns-online l_patterns,

    p_label-online 'Privileges of Test',

    p_description-online "Test Prileges"

    );

    end;

    -create customer shop

    Start

    () OAuth.create_client

    p_name-online "oauth.shop."

    p_grant_type-online "client_credentials."

    p_privilege_names => NULL,

    p_support_email => ' mailto:[email protected]'

    );

    end;

    -create customer test

    Start

    () OAuth.create_client

    p_name-online "oauth.test."

    p_grant_type-online "client_credentials."

    p_privilege_names => NULL,

    p_support_email => ' mailto:[email protected]'

    );

    end;

    -to grant client roles

    begin oauth.grant_client_role ('oauth.shop', 'role.shop'); end;

    begin oauth.grant_client_role ('oauth.test', 'role.test'); end;

    commit;

    After doing that the access token for the client oauth.test and has access to

    -/ Shop/pk / *.

    -/ Shop/gk / *.

    -/ test / *.

    The access to the oauth.shop client token has access to

    -/ Shop/pk / *.

    -/ Shop/gk / *.

  • _root.gotoAndPlay inside a clip does not work with several scenes

    Hello
    My site is running when I decided to add a preloader, which I placed it in a new scene before the real site.
    Now, I noticed that all my buttons are broken.
    After some research I discovered a button with _root.gotoAndStop (5) inside a movieclip (and there are many of them in my site) no longer works because there are several scenes.
    Is this a bug or is there a workaround? (I use Flash MX 2004)

    This file can illustrate the problem.
    Download example
    Thank you

    It's not a bug - it is preventable by doing two things:

    do not use _root

    referencing of images using labels (whatever the scene, they are in!)

  • working with the model - printable pdf has various measures?

    Hello experts!

    I'm hoping to find an answer to the question of my beginner.

    To begin with: I'm more or less new to InDesign, just (almost) finished my first brochure (yipiiieeh!).

    Problem in a few words:

    I worked on a brochure using the configurations of a former book document. Thus, the two brochures have following Setup:

    As the old brochure has already been printed, we also have a printable file list 878.4 x 294.2 mm in the PDF file.

    When I save my work now, following measurements in the PDF file: 884.4 300.2 mm x.

    As the brochure is supposed to be foldable, these measures are very important, in my understanding.

    I'm really afraid that we'll send it to the printer and it is completely destroyed just because I oversaw certain parameters...

    So, THANK YOU all in advance for your help!

    NAT

    Sorry, I had the opposite two. One has been exported without cut her, former so uncheck this box.

  • Creating a report with several models of data...

    Use of BI publisher for Word 10.1.3.4

    I'm trying to create a template in Word format with report parameters, that I created in BI Publisher.

    I created two data models, the two tables different references I need on the report itself. The question that I've seen is whenever I use the table, rowset Wizard is grayed and only the default data model (sql query) can be used.

    I looked around and was unable to find a solution to this.

    Hello

    You must set as main data Source of concatenated dataset. Otherwise, only one set of data is used.

    Concerning
    Rainer

Maybe you are looking for