Replace after specific string

Hello people,

I have the query on 9i below:
SELECT ERRMESSAGE FROM USER_LOG;
And he'll be back:
http://somepath/somepath/somepath/somepath.aspx form visit at:prod - Client:10.10.101.243
http://someotherpath/someotherpath/someotherpath/someotherpath.aspx form visit at:prod - Client:10.20.11.203
...
...
2500 more records
I want to remove everything after the .aspx to keep only the part of the URL. for example:
http://somepath/somepath/somepath/somepath.aspx
http://someotherpath/someotherpath/someotherpath/someotherpath.aspx
...
...
Thanks in advance for your help

Slight modification of the position of Bravid

with user_log as
(   select 'http://somepath/somepath/somepath/somepath.aspx form visit at:prod - Client:10.10.101.243' ERRMESSAGE from dual union all
    select 'http://someotherpath/someotherpath/someotherpath/someotherpath.aspx form visit at:prod - Client:10.20.11.203' ERRMESSAGE  from dual
)
SELECT
    SUBSTR(errmessage,1,INSTR(errmessage,'.aspx') + length('.aspx') ) trimmed_errmessage
FROM
    user_log
/

Tags: Database

Similar Questions

  • Find and replace the delimited string value by the

    Hi all

    I have a requirement where I need to find and replace the delimited string values.

    For example, the string is "GL ~ 1001 ~ 157747 ~FEB-13~ CREDIT ~ A ~ N ~ US ~ NULL ~". The 4th column gives the month and year. I need to replace it with the name of the previous month. For example: "GL ~ 1001 ~ 157747 ~JAN-13~ CREDIT ~ A ~ N ~ US ~ NULL ~". I need to do the same thing for the past 12 months.

    I thought initially divide the values and store it in a variable and then after him substituting the value required, join the return.

    I just wanted to know if there is a better way to do it?

    Like this:

    with a model like

    (select "GL ~ 1001 ~ 157747 ~ FEB-13 ~ CREDIT ~ A ~ N ~ $ ~ NULL ~' double UNION ALL data")

    Select ' GL ~ 1001 ~ 157747 ~ JAN-13 ~ CREDIT ~ A ~ N ~ US ~ NULL ~' double data)

    Select

    REPLACE (DATA, TO_CHAR (to_date (substr (data, 16.6), "MON-RRRR"), 'MON - RR'), TO_CHAR (to_date (substr (data, 16.6), "MON-RRRR")-1, 'MON - RR'))

    modeling;

    GL ~ 1001 ~ 157747 ~ JAN-13 ~ CREDITS ~ HAS ~ N ~ US ~ NOTHING ~

    GL ~ 1001 ~ 157747 ~ DEC-12 ~ CREDITS ~ HAS ~ N ~ US ~ NOTHING ~

    Ishan

  • Search for files which file name contains a specific string

    Hello

    I'm lookng for a way to find all the files in a directory, what part of the file name contains a specific string.

    for example:

    String = Hello

    files;

    -1hello2.txt

    -22he45.txt

    -gehello42353.txt...

    The result should be an index or the full file name that matches. In the example, I found the indexes 0, 2, or 1hello2.txt and gehello42353.txt.

    In fact, I have a list of files with the "recursive list.vi".

    Any suggestions are welcome.

    Thank you for your help

    Yves

    You can use the list of folder - function with * Hello *-model.

    From there on, you get the names of files that include this specific model.

    If already you have the list of files:

    -use the chain of digitization of the chips in a loop for and if token index! = - 1, then you can add this index in array to the list.

    I m sure there are better ways to do it, but nothing that I can get to quickly.

  • Windows 7 can search for files containing a specific string that includes punctuation

    I have a documentation for a programming language which is in the form of html on my machine and search for files that contain the string "${1}".

    However if I type that in the search box windows instead seeks any file containing the string '1' in its content or its file name or a folder (which gives me 10240 results!)

    Research I try it is possible with a different syntax (escape the $ and brackets to indicate that they are part of the search maybe string)?

    Thank you

    MOG

    Hi Mog,

    Because the question you posted is related to search for files containing a specific string, it would be better suited in the MSDN forum. Please post your question in the following MSDN forum:

    http://social.msdn.Microsoft.com/forums/en-us/windowsgeneraldevelopmentissues/threads

  • Parses a specific string in ActiveRichTextField using StringPattern

    Hi, I am a newbie in the development of BLB and exploring the ActiveRIchTextFIeld currently. I know that it detects channels such as phone number and e-mail by himself and inserts a menu item in the context Menu for. However, I am trying to make the field to detect a specific string as a postcode to the address or any other string indicating the address. I've read that this can be done using the StringPattern or PatternRepository.However m unable to understand how it can be achieved. Can someone please give me an excerpt of reference for the same thing? Thanks in advance...

    Welcome.

    Ko is always a good place to look for things like BLAH:

    How to-to comparison models in the BlackBerry smartphone to provide a user experience integrated applications
    Article number: DB-00525
    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800505/800608/...

  • Search & replace to specific pages

    Is it possible to use find & replace to specific pages or a range of pages?

    I need to replace the number 2012 in 2013, but not throughout the document, only starting to say 150 to 350 page.

    any ideas? grep?

    I work with Indesign CS5

    Two things: you can connect both ends in the text flow when you move the pages back, and for the scriptiung challenged as you and I, we have the script forum where we can ask you for help: http://forums.adobe.com/community/indesign/indesign_scripting

  • get windows 7 cd replacement after a hard disk crash

    How to make a cd of installation of windows 7 to install on laptop after accident/replacement of the hard disk. I have the original product key but not CD and you want to continue to use this laptop.

    (1) download the Windows 7 proper. ISO file that includes Service Pack 1
    (Note: must match for your product key version)

    How do I know if I have a version of 32 or 64 Bit of Windows installed on my computer:
    http://Windows.Microsoft.com/en-us/Windows7/find-out-32-or-64-bit

    Windows 7 Home Premium 32 Bit: http://msft.digitalrivercontent.net/win/X17-58996.iso
    SHA1 hash: 6071B4553FCF0EA53D589A846B5AE76743DD68FC
    Windows 7 Home Premium 64-Bit: http://msft.digitalrivercontent.net/win/X17-58997.iso
    SHA1 hash: 6C9058389C1E2E5122B7C933275F963EDF1C07B9

    Windows 7 Professional 32 bit: http://msft.digitalrivercontent.net/win/X17-59183.iso
    SHA1 hash: D89937DF3A9BC2EC1A1486195FD308CD3DADE928
    Windows 7 Professional 64-bit: http://msft.digitalrivercontent.net/win/X17-59186.iso
    SHA1 hash: 0BCFC54019EA175B1EE51F6D2B207A3D14DD2B58

    Windows 7 Ultimate 32 Bit: http://msft.digitalrivercontent.net/win/X17-59463.iso
    SHA1 hash: 65FCE0F445D9BF7E78E43F17E441E08C63722657
    Windows 7 Ultimate 64-Bit: http://msft.digitalrivercontent.net/win/X17-59465.iso
    SHA1 hash: 36AE90DEFBAD9D9539E649B193AE573B77A71C83

    (2) after downloading the correct .iso file install HashCalc and validate the SHA1 hash value
    is correct.
    HashCalc: http://www.slavasoft.com/hashcalc/index.htm
    (Note: If the download is not corrupted, HashCalc value returns will correspond to the value of SHA1 I posted)

    (3) then use ImgBurn or ISO gear to burn a bootable DVD.

    Create a Windows 7 Bootable DVD using the. ISO file
    Engraving of a file of Windows 7 ISO on a DVD
    http://support.Microsoft.com/default.aspx/KB/977640

    ImgBurn - in addition to supporting the creation of CD/DVD of. ISO files,
    It supports a wide range of image file formats, and it's free.
    (BIN, CUE, DI, DVD, GI, IMG, MDS, NRG, PDI and ISO)
    http://www.ImgBurn.com/

    Projectiles help you to use ImgBurn to screen: http://www.imgburn.com/index.php?act=screenshots
    Burn the ISO Images with ImgBurn article: http://neosmart.net/wiki/display/G/Burning+ISO+Images+with+ImgBurn
    (Les étapes sont les mêmes pour Windows 7 ou Windows 8), except that you do not create a repair disk but complete an installation DVD)

    Note: Always use high quality DVD + R media and slower burning (4 x or 6 x) speed is offered a choice.

    ====================== Keyless Install ================================

    How to make a 'Keyless Install"of Windows:

    Boot from the Windows 7 DVD disc, you create and launch the installation.

    After you have entered the user name and password that you will be asked:
    "Type your Windows product key", do not enter a key.
    Also located just below the box where you enter the key is a box with a check mark
    to "Automatically activate Windows when I'm online", remove the check box and click "next".

    You now have a 30-day grace period to activate Windows.

    During the grace period, you can install your device drivers,
    run Windows updates and solve other problems or issues.
    Once you are satisfied everything is working properly, and then activate Windows.

    ====================== Device Drivers ===============================

    Go to your computer manufacturer's support web site and search for Windows 7 drivers for your specific model number.

    If there are Windows 7 drivers, then to download to a folder on your hard drive and install all of them, starting with the card drivers mother/chipset, SATA, LAN, Audio, USB, graphics, Webcam, Etc., and so on.

    List of computer manufacturer support sites:
    http://Windows.Microsoft.com/en-us/Windows/help/contact-support/computer-manufacturers

    Tips for solving common driver problems
    http://Windows.Microsoft.com/en-us/Windows7/tips-for-fixing-common-driver-problems
    Vista: http://windows.microsoft.com/en-US/windows-vista/Tips-for-fixing-common-driver-problems

    Graphics/video drivers:
    Check the download site of the manufacture of the graphics card for the latest Windows 7 drivers for your card.
    ATI: http://support.amd.com/us/gpudownload/Pages/index.aspx
    NVIDIA: http://www.nvidia.com/Download/index5.aspx?lang=en-us

    = Run Windows Update =.

    Install the 'Important' updates that are available.

    Make a small group (10 updates both maax) of updates at the same time
    reboot if prompted and install another small group of updates and so on.
    registration of .NET Framework updates for the end.

    = How to activate Windows 7 by Internet =.

    1) click Start and in the search for box type: activate
    2) click on the 'Activate Windows' option at the top of the list
    3) click on "now, activate Windows online.
    (4) enter your 25-character product key (not case sensitive)
    5) click "Next" and wait for the key must be verified.

    Another method - to reach a real person:
    1) click Start and in the search for box type: slui.exe 4
    (2) press the ENTER"" key.
    (3) select your "country" in the list.
    (4) choose the option "activate phone".
    (5) stay on the phone * do not select/press any option * and wait for a person to help you.
    (6) explain your problem clearly to the support person.
    (7) the person must give you a confirmation ID, copy it down on paper,
    (8) check that the ID is correct in reading the support person.
    (9) to enter the ID number, then click 'Next' to complete the activation process.

    Microsoft Activation centers worldwide telephone numbers:
    http://www.Microsoft.com/licensing/existing-customers/activation-centers.aspx
    (This site is for activating Volume License, but if you call, they will help you)

    The phone number is not working:
    Microsoft Worldwide contacts: http://www.microsoft.com/worldwide/default.aspx

    Activation and registration of a Microsoft product
    http://support.Microsoft.com/?kbid=326851
    Windows activation: (888) 571-2048

    J W Stuart: http://www.pagestart.com

  • Replacement after the specified index table

    Hello

    I am completely new to labVIEW as a student. I have a question to overwrite a table once received at a specified index.
    In particular, I have to add up numbers in a table at all times and take the average of the last three values.

    I wanted to make a new table that stores the three numbers and after that, began to replace the first, then the second, the third, first of all, the second you...

    Can someone help me, showing me how to cut my tables up to a limit of 3 values?

    Thanks in advance!

    (Sorry for the bad English)

    To take the average, the order of the array is unimportant. Here's what I'd do.

    (With a little more code, it also works for the first couple of iterations.) See this old post)

    There's also means ptbypt, which does the same thing!

  • Pravilion dv7 series replaced after the recovery disk hard drive failure

    I tried to use the portion of my drive recovery hard when my laptop Pavilion dv7-4173 US could not operate.  After trying the hard drive recovery part several times I got an error message saying that the bootmgr is missing. I tried using the recovery discs I got to the store, I bought the computer before taking it home, and they failed. They worked up to 32% and then stopped.  I took the laptop and recovery (6 discs) disks to the tech Department of another retail store. After several days, I learned the recovery disc where no good/damaged. When I contacted the store bought told me that I had to bring in the laptop and recovery disks. They replaced the hard drive, saying: that was the problem, but do not partition. They decided to classified until the system OS of Windows 7 Home Premium 64-bit for Windows 7 Professional 64 bit., but did not try the recovery disks. Can I use the recovery disk, they made me, if are good restore the laptop back to factory new?  I know he will place the operating system Windows 7 Home back on the computer, but I want that all return provided with computer programs. I'll be able to upgrade the Professional operating system? I have the disc of Windows 7 Professional.  If my restore disk will not work, can I use the recovery disc, only 2 discs instead of 6, I can buy from HP and then move on to professional?

    Thank you.  Computer to factory fresh.  Just update software and then go to Windows 7 Professional

  • BeatsAudio missing/replaced after installation Windows 8.1

    Hello

    When I bought my laptop (HP Pavilion 15-p044tu), it had installed Windows 7. In addition, BeatsAudio controller installed.  Then I installed Windows 8.1 64 (clean install, not upgrade from 7) and it required a full format of my HARD drive. So all readers wiped out which one had driver & OS backup stored.

    After installing win8.1, I went to HP support page for my laptop and manually downloaded the drivers (including Audio drivers) from there. Please note that some of the drivers have been installed automatically by windows and there is no 'unknown device' in my Device Manager s tree "other devices."

    The problem I faced is that there is no BeatsAudio interface anywhere. It has been replaced by "Realtek HD audio". Even in the control panel where there was a bat icon, there is a realtek icon now. I searched other forums where they suggested IDT audio driver installation that will bring back the beats, but there is no such driver on my driver for laptop page. I tried the drivers for windows 7, but got no positive result. Also I tried to install different models for different laptop computer to the windows version IDT drivers but it says, "the hardware found is not supported by this IDT Audio Driver" & stop the installation process.

    I also tried to install it in safe mode, but got the same result. Note that my audio works as usual with realtek, but the soun is lower than before. I just need the audio back beats.

    Please help me with this problem. I searched your forum, but did not get any solution (just different drivers IDT which resulted in the same thing).

    Waiting for a response.

    Thank you.

    Hello

    Interface audio beats is provided by the audio software installer - this can be IDT or Realtek according to the material.

    Try the following.

    Download the Realtek Audio Installer on the link below and save it in your downloads folder.

    http://ftp.HP.com/pub/SoftPaq/sp66001-66500/sp66107.exe

    When finished, press and hold the Windows key and press R.  In the run window, type devmgmt.msc and press ENTER.

    Expand sound, video and game controllers.  Right click on the Realtek device and select uninstall - also, you should get a command prompt to delete the current driver, check the box allow this and then proceed to uninstall.

    When you are finished, download and reinstall the Chipset driver at the following link.

    http://ftp.HP.com/pub/SoftPaq/sp66001-66500/sp66094.exe

    After reinstalling, shut down the laptop, unplug the AC adapter and then remove the battery.  Press and hold the Power button for 30 seconds.  Reinsert the battery and plug in the AC adapter.

    Let Windows load completely - it can automatically load an audio driver, but let just this complete.  Then open your download folder, right-click on the installation of Realtek Audio program and select "Run as Administrator" to launch the installation.  Once this done, restart the laptop again and let Windows take over completely for a few minutes before trying to launch the interface of beats for the Windows Control Panel.

    Kind regards

    DP - K

  • Darken a specific string Match (LogFilter)

    I have a string of specific match I need black out for a time determined on a daily basis. We currently have one LogFilter officer set up for that particular log with a match string list that we monitor. There is a single string that I need blackened every morning between 04:00 and 07:45. The only way I think I can do it is if I have LogFilter a second officer and apply only the one corresponding to the string, then I can this particular agent of LogFilter black. Can anyone confirm if it would work? Would I meet problems because we follow the same newspaper on two different officers of LogFilter?

    You can control the same log file with several agents. Each agent will retain its own pointer to the log file of the previous analysis of the new entries in the log file.

  • Replace a string variable value (replace '&' in the string at 26%)

    Hi all... I have a question... .we form a url that has a field of string with "&" in its value example: ST & G... the url is slightest mistake out. However, if we replace this value by ST % 26G it works as expected. I tried to replace ('ST & G', '&') it asks to enter the value of substitution and exit ST not what I need... I need the output to % 26G ST. Please suggest.

    There is an API for this task: UTL_URL

    However, the parameter that handles the reserved characters unescaping is Boolean data type and is false by default, so you can call it only of PL/SQL:

    SQL> begin
      2    dbms_output.put_line( utl_url.escape('ST&G', true) );
      3  end;
      4  /
    
    ST%26G
    
    PL/SQL procedure successfully completed.
    
  • First Pro CC 2014 replace after effects Composition grayed out

    Hello

    When I try to replace it by, click on after effects on my project button is grayed out when I After Effects cc installed 2015. Someone please help.

    Hi Anukt,

    What version of Premiere pro and After effects, you have?

    FAQ: How to find the exact version of Premiere Pro you are using?

    Similarly, check for After effects.

    Make sure, that you have installed the latest versions of both.

    Thank you

    Ilyes Singh

  • Replacement of specific links to script

    Our company is the subject of a change in name/logo and we have around indesign documents of 1000-1500, who need to have the logo replaced/re-related links.

    I need help creating a script, javascript, which will allow me to recreate a link to about 10 files of different logos to completely different paths with different file names using preferably.   All files located on a windows-based server, and are all our users indesign cs5.0 windows based as well.  I would like the script to loop through a set of links specific logo it will replace any and all instances of former logos with new logos.

    Example of

    K:\poor\directory\structure\sadface\RedCoLogo_White.EPS becomes L:\CompanyLogos\BlueIncLogo_W.eps

    K:\poor\directory\structure\sadface\RedCoLogo_Black.EPS becomes L:\CompanyLogos\BlueIncLogo_B.eps

    K:\poor\directory\structure\sadface\RedCoLogo_Red.EPS becomes L:\CompanyLogos\BlueIncLogo_R.eps

    K:\poor\directory\structure\sadface\RedCoLogo_Green.EPS becomes L:\CompanyLogos\BlueIncLogo_G.eps

    I've tried some premade scripts that use dialogs at the entrance of the old and new path, but I need the script runs without user intervention, so it can batch run by using another script that I found which will open the indesign files in a given directory, run a script, save and close.

    I do not know very well of javascript, but I'm fimiliar with its functioning and its syntax/etc; I've already customized a handful of FindChangeByList scripts to use different txt files and active loop through a number of indesign files.

    Any help would be greatly appreciated.

    Hello

    I added the adjustment options...

    #target InDesign
    
    app.scriptPreferences.userInteractionLevel = UserInteractionLevels.NEVER_INTERACT
    app.activate();
    
    var myFolder = 'L:/CompanyLogos/';
    var toSearch = ['RedCoLogo_White.eps', 'RedCoLogo_Black.eps', 'RedCoLogo_Red.eps', 'RedCoLogo_Green.eps'];
    var toRelink = ['BlueIncLogo_W.eps', 'BlueIncLogo_B.eps', 'BlueIncLogo_R.eps', 'BlueIncLogo_G.eps'];
    
    var inddFiles = Folder.selectDialog ('Please choose folder with *.indd-files').getFiles('*.indd');
    var l = inddFiles.length;
    
     if (l === 0){displayDialog('The selcted folder doesn\'t contain ID-Files'); exit()};
    
    while(l--){
        try{
    app.open(inddFiles[l]);
    var theDoc = app.activeDocument;
    
    var allLinkNames =theDoc.links.everyItem().name;
    
    for(var i = 0; i < toSearch.length; i++)
    {
    var myName = toSearch[i];
    for(var s = 0; s < allLinkNames.length; s++)
    {
    var linkName = allLinkNames[s];
    if    (linkName === myName){
    var newFile = File(myFolder + toRelink[i]);
    
    with(theDoc.links[s]){
        relink(newFile);
    parent.fit(FitOptions.fillProportionally);
    parent.fit(FitOptions.centerContent);
    }
    
            }
        }
            }
    
            theDoc.save();
    theDoc.close();
    
    }catch (e){
        app.scriptPreferences.userInteractionLevel = UserInteractionLevels.INTERACT_WITH_ALL;
        displayDialog(e);
        app.scriptPreferences.userInteractionLevel = UserInteractionLevels.NEVER_INTERACT;
        }
    }
    
    app.scriptPreferences.userInteractionLevel = UserInteractionLevels.INTERACT_WITH_ALL;
    
    function displayDialog(aString){
    var infoWindow = new Window("palette");
    infoWindow.add("statictext", undefined, aString);
    infoWindow.show();
    $.sleep(2000);
    infoWindow.close();
    }
    

    Hope this will work

  • Find the angle of rotation of the anchored object, replace that specific object by letter

    I got indd file customer. General problem is that he described certain letters of the words.

    In fact, he described the letter e and that it rotates 180 °. It also makes with the letter c and there a rotation that anchored-178, 8250 ° oppose.

    Now, I tried to change this objects to the real letters. Problem is that I can't find the option for the rotation of an object in the Find/Replace dialog box, and also I can't fint in Grep. So, what are my options?

    Thanks in advance...

    PS. If there is a possibility to change one of them, I can change a second with finding anchored object and change it to specific letter...

    Looks like someone could not find the real schwa or o open on their keyboards

    Possible, but tricky.

    This Javascript will search history containing the text for items cursor which rotated 180 degrees and replace them with a question mark. Replace the question mark with the character really wanted in notation Unicode Javascript ("\u... ("-here character four-digit hexadecimal code).

    It really isn't a good way to check if it really is one that you should be replacing, so it does not blindly on all 180 degrees of rotation objects...

    (You can simply change the "180" to your another number to check the other characters).

    all_text = app.selection[0].parentStory;
    
    for (thingy=all_text.allPageItems.length-1; thingy>=0; thingy--)
    {
         alert (all_text.allPageItems[thingy].rotationAngle);
         if (all_text.allPageItems[thingy].rotationAngle == 180)
         {
              all_text.characters[all_text.allPageItems[thingy].parent.index].contents = "?";
         }
    }
    

Maybe you are looking for