REGEXP_REPLACE problem/bug - replaces only each second occurrence

Hi all


I use

Oracle Database 10 g Express Edition Release 10.2.0.1.0 - product
PL/SQL Release 10.2.0.1.0 - Production
CORE 10.2.0.1.0 Production
AMT for 32-bit Windows: Version 10.2.0.1.0 - Production
NLSRTL Version 10.2.0.1.0 - Production

I need a regular expression to rename a variable in a mathematical formula, when testing my code that I discovered that if the variable was repeated after himself that a single occurrence has been replaced. I need to replace only whole words as some variables can be a subset of a variable name longer, and variable names can have underscores in them.
Here is an example of what happens.

Is someone can you please tell me why this happens? Example code is:

SELECT REGEXP_REPLACE (' ab ab ab + ab + ab + ab + ab + abc + abc + ab ", '(\W|^)ab(\W|$)', '\1xy\2',1,0,'i') from DUAL;

The regular expression matches all the "ab" with a start line or a non alphabetical character before and not alpha or end of line at the end.

I have then replace the "ab" by "xy" and keep the original alpha not on each side. What happens is that only every second occurrence is replaced.
If I put a space after each '+', and then it replaces all occurrences. (Of course, this is a domain user in a table of mathematical formulas so I can not wait to the user to worry about this problem.)

I think that this may be due to the fact the pointer in conclusion any occurrence is moved correctly and it does not find the game immediately after.

Can someone please explain this? Or did I miss something in my example.

Thank you
Dudley

I don't think it's a bug, at least comparable re in python produces the same result:

import re
s="ab+ab+ab+ab+ab+ab+ab+abc+abc+ab"
print re.sub(r"(\W|^)ab(\W|$)",r"\1xy\2",s)
xy+ab+xy+ab+xy+ab+xy+abc+abc+xy

If you have a match in your regular expression, the next probe will be launched after the game, it's how the regular expression works (at least IMHO).
In your example the corresponding characters are "+ ab + (except the beginning of the line, end of line), that's why next occurency"ab"is not equal to."
If you want to replace all"in Alberta, you could make the model as

SELECT REGEXP_REPLACE('ab+ab+ab+ab+ab+ab+ab+abc+abc+ab', '(\W|^)?ab(\W|$)' , '\1xy\2',1,0,'i') from DUAL;

Best regards

Maxim

Published by: Maxim Demenko, 14 July 2009 14:09
fixed formatting

Tags: Database

Similar Questions

  • replace only the first and the second comma by TAB in the apex using using jquery

    All,

    I'm generating models of string in the text box in my apex as page == > 23232,445454, «454545,7878,988978, 3r3e»
    and I want to replace only the first and the second comma with TABS so I get like == > 23232 445454 «454545,7878,988978, 3r3e»

    It should run with the jquery code when I click my button?

    any help on this please?

    Thank you.

    How does this update function:

    function replaceUpToN(original, search, replaceWith, maxOccurence){
    
        var NEW_LINE = '\n';
    
        var lines = original.split(NEW_LINE);
    
        $.each(lines, function(index, value){
            var idx = 0;
            lines[index] = value.replace(search, function(match, pos, original){
                idx++;
                return idx <= maxOccurence ? replaceWith : match;
            });
    
        });
    
        return lines.join(NEW_LINE);
    
    }
    
  • Replace only first occurrence in the string

    Hello

    Have we not function in sql where in only the first occurrence in the string is replaced by the desired string.

    Example:

    original string: "Oracle is the best. Oracle is awesome"

    Now, I need to change only the first occurrence of the oracle

    changing string: "replaced is the best." Oracle is awesome"

    do we not have any function to do?
    regexp_replace (str, '(Oracle)', 'Replace', 1, 1)
    

    as in

    SQL>  with test as
      2   (select 'Oracle is the best. Oracle is great' str from dual)
      3   select regexp_replace (str, '(Oracle)', 'Replace', 1, 1) str
      4    from test
      5  /
    
    STR
    ------------------------------------
    Replace is the best. Oracle is great
    
  • Satellite A300D-155 - camera works only 2 seconds

    I have problem with the camera.

    Whenever I start it, it works only 2 seconds, and then the image is black. The blue indicator light is all the time. When I start properties even change nothing, photo appears again. Worse still when I call someone, I can't help.

    What should I do?

    Have you updated the driver for the camera and looked for a BIOS update?
    Check this on the Toshiba site:
    http://EU.computers.Toshiba-Europe.com-online decision-making supported Downloads & => Download drivers

    It's strange, but I think that an update of the driver should help.
    Perhaps more programs try to use the camera. Select this check box.

  • Windows Movie Maker is important video imcompletely (only five seconds to hour long video)

    I tried to import this hour long video in windows movie maker, and the result is that only five seconds of the video is imported. I tried over and over again, but still five seconds of the video is imported. I have searched the Internet for answers, but impossible to find a single solution to all but one of this forum that leads to a page for the Director in windows vista, which certainly does not help. Any help on this situation would be greatly appreciated. If it helps, I am running Service Pack 2 for Windows XP Home 32-bit Edition.

    The extension is (.mpg). I've just updated to Service Pack 3, but the problem is still persistent... Right, the Windows Movie Maker version is 5.1, if it helps.

    =====================================
    The problem is the file format. If you convert the MPG file
    in WMV format, you can have better results.

    Several formats are apparently compatible with
    Movie Maker, but the most reliable choices are:

    Photos - bmp
    Video - wmv or dv - avi
    Music - wma, wav, wmv

    The following freeware can convert:

    (FWIW... it's always a good idea to create a system)
    Restore point before installing software or updates)

    Format Factory
    http://www.pcfreetime.com/
    (FWIW... installation..., you can uncheck
    ('all' boxes on the last screen)

    First... after the download and installation of Format
    Factory... you can open the program and
    left click on the toolbar, the "Option" button and
    "Select an output folder to" / apply / OK.
    (this is where you find your files after they)
    are converted)

    Drag and drop your video clips on the main screen...

    Select "all to WMV" / OK...

    Click on... Beginning... in the toolbar...

    That should do it...

    Volunteer - MS - MVP - Digital Media Experience J - Notice_This is not tech support_I'm volunteer - Solutions that work for me may not work for you - * proceed at your own risk *.

  • When my Windows movie maker video loading, it will load only 11 seconds of a video of 5 minutes.

    I'm doing a video.  The video is Mpeg-2.  It's a little more than 5 minutes.  I tried several times to load the video but whenever he played only 11 seconds.  Whenever I play the video through windows media player, it will play the entire video.  Help, please!

    I'm doing a video.  The video is Mpeg-2.  It's a little more than 5 minutes.  I tried several times to load the video but whenever he played only 11 seconds.  Whenever I play the video through windows media player, it will play the entire video.  Help, please!

    ==================================
    Movie Maker has problems of compatibility with the MPEG files...
    It may be interesting to try to convert the file to the. WMV
    format before you import into Movie Maker.

    There are many programs that can do conversions...
    The following freeware is an example...:

    (FWIW... it's always a good idea to create a system)
    Restore point before installing software or updates)

    Format Factory
    http://www.videohelp.com/tools/Format_Factory
    (the 'direct link' is faster)
    (the file you want to download is: > FFSetup260.zip<>
    (FWIW... installation..., you can uncheck
    ('all' boxes on the last screen)

    First, you will need to decompress the file or just open the
    Drag FFSetup260.exe out of the folder
    and drop it on your desktop. To install left click.

    Next, after the download and installation of Format
    Factory... you can open the program and
    left click on the toolbar, the "Option" button and
    "Select an output folder to" / apply / OK.
    (this is where you find your files after they)
    are converted)

    Drag and drop your video clips on the main screen...

    Select "all to WMV" / OK...

    Click on... Beginning... in the toolbar...

    That should do it...

    Good luck...

    Volunteer - MS - MVP - Digital Media Experience J - Notice_This is not tech support_I'm volunteer - Solutions that work for me may not work for you - * proceed at your own risk *.

  • How can I make a long list of search - replace only the master

    Hello world

    I had this script:

    //---------------------------------------------------------------------------------------- -------------------------------

    myDocuments var = app.documents.everyItem ();
    var myLayers = myDocuments.layers.everyItem ();

    Locked text on master blocks spreads are not affected.
    If you want to unblock, please add something like this:

    Unlock all elements of each document page on is spreading and Captain spreads (optional):
    myDocuments.pageItems.everyItem (.locked = false);

    var myPageItemsOnNormalSpreads = myDocuments.spreads.everyItem ().pageItems.everyItem ();

    Unlock the layers (optional)
    myLayers.locked = false;

    Lock all elements of page level first on normal spreads
    This leaves the elements on the page on unlocked master spreads:
    myPageItemsOnNormalSpreads.locked = true;

    Now for the GREP part:
    app.findChangeGrepOptions.includeMasterPages = true;
    app.findGrepPreferences = changeGrepPreferences = null;
    app.findGrepPreferences.findWhat = "\\b20\\d+\\b";

    Research on "all open document" level
    Which returns an array of arrays:
    var myTarget = myDocuments.findGrep ();

    Flattening of myTarget Bay:
    var flattenedFoundArray = [];

    for (var n = 0; n < myTarget.length; n ++) {}
    flattenedFoundArray = flattenedFoundArray.concat (myTarget [n]);
    };

    Change the content of the texts found in flat table:
    for (var n = flattenedFoundArray.length - 1; n > = 0; n-) {}
    flattenedFoundArray [n] .silence = String (Number(flattenedFoundArray[n].contents) + 1);
    };

    Unlock all objects on normal spreads:
    myPageItemsOnNormalSpreads.locked = false;

    Reset search GREP and edit the prefs:
    app.findGrepPreferences = changeGrepPreferences = null;

    //---------------------------------------------------------------------------------------- -------------------------------

    made by Uwe

    I change in this, to make a multi elements of search - replace only the master

    //==============================================================================

    myDocuments var = app.documents.everyItem ();
    var myLayers = myDocuments.layers.everyItem ();

    Locked text spreads masters frameworks are not affected.
    If you want to unblock, please add something like this:

    Unlock all items page of each document of spreads and master spreads (optional):
    myDocuments.pageItems.everyItem (.locked = false);

    var myPageItemsOnNormalSpreads = myDocuments.spreads.everyItem ().pageItems.everyItem ();

    Unlock the layers (optional)
    myLayers.locked = false;

    Lock all elements of page level first on normal spreads
    This leaves the elements on the page on unlocked master spreads:
    myPageItemsOnNormalSpreads.locked = true;

    Now for the GREP part:
    app.findChangeGrepOptions.includeMasterPages = true;
    app.findGrepPreferences = changeGrepPreferences = null;
    app.findGrepPreferences.findWhat = "USA";

    Research on "all open document" level
    Which returns an array of arrays:
    var myTarget = myDocuments.findGrep ();

    Flattening of myTarget Bay:
    var flattenedFoundArray = [];

    for (var n = 0; n < myTarget.length; n ++) {}
    flattenedFoundArray = flattenedFoundArray.concat (myTarget [n]);
    };

    Change the content of the texts found in flat table:
    for (var n = flattenedFoundArray.length - 1; n > = 0; n-) {}
    flattenedFoundArray [n] .silence = "CHINA";
    };

    Unlock all objects on normal spreads:
    myPageItemsOnNormalSpreads.locked = false;

    Reset search GREP and edit the prefs:
    app.findGrepPreferences = changeGrepPreferences = null;


    //---------------------------------------------------------------------------------------- -------------------------------

    myDocuments var = app.documents.everyItem ();
    var myLayers = myDocuments.layers.everyItem ();

    Locked text spreads masters frameworks are not affected.
    If you want to unblock, please add something like this:

    Unlock all items page of each document of spreads and master spreads (optional):
    myDocuments.pageItems.everyItem (.locked = false);

    var myPageItemsOnNormalSpreads = myDocuments.spreads.everyItem ().pageItems.everyItem ();

    Unlock the layers (optional)
    myLayers.locked = false;

    Lock all elements of page level first on normal spreads
    This leaves the elements on the page on unlocked master spreads:
    myPageItemsOnNormalSpreads.locked = true;

    Now for the GREP part:
    app.findChangeGrepOptions.includeMasterPages = true;
    app.findGrepPreferences = changeGrepPreferences = null;
    app.findGrepPreferences.findWhat = 'Washington DC';

    Research on "all open document" level
    Which returns an array of arrays:
    var myTarget = myDocuments.findGrep ();

    Flattening of myTarget Bay:
    var flattenedFoundArray = [];

    for (var n = 0; n < myTarget.length; n ++) {}
    flattenedFoundArray = flattenedFoundArray.concat (myTarget [n]);
    };

    Change the content of the texts found in flat table:
    for (var n = flattenedFoundArray.length - 1; n > = 0; n-) {}
    flattenedFoundArray [n] .silence = "Beijing."
    };

    Unlock all objects on normal spreads:
    myPageItemsOnNormalSpreads.locked = false;

    Reset search GREP and edit the prefs:
    app.findGrepPreferences = changeGrepPreferences = null;


    //===============================================================================

    only what I can do is to repeat and repeat again

    is this another perfect solution to do?

    Thank you

    Teetan

    Try this,

    findChange("USA", "CHINA");
    findChange("Washington DC", "Beijing");
    
    function findChange (findWhat, changeContent){
        var myDocuments = app.documents.everyItem();
        var myLayers = myDocuments.layers.everyItem();
        //Locked text frames on master spreads are not touched.
        //If you want to unlock them you have to add something like this:
        //Unlock ALL page items in every document on spreads and master spreads (optional):
        myDocuments.pageItems.everyItem().locked = false;
        var myPageItemsOnNormalSpreads = myDocuments.spreads.everyItem().pageItems.everyItem();
        //Unlock the layers (optional)
        myLayers.locked = false;
        //Lock all first level page items on normal spreads
        //That leaves the page items on master spreads unlocked:
        myPageItemsOnNormalSpreads.locked = true;
        //Now for the GREP part:
        app.findChangeGrepOptions.includeMasterPages = true;
        app.findGrepPreferences = changeGrepPreferences = null;
        if(findWhat)app.findGrepPreferences.findWhat = findWhat;
        //Do the search on "all open document" level
        //That will return an array of arrays:
        var myTarget = myDocuments.findGrep();
        //Flattening the myTarget array:
        var flattenedFoundArray = [];
        for(var n=0;n=0;n--){
            if(changeContent)flattenedFoundArray[n].contents = changeContent;
            };
        //Unlock all objects on normal spreads:
        myPageItemsOnNormalSpreads.locked = false;
        //Reset GREP find and change prefs:
        app.findGrepPreferences = changeGrepPreferences = null;
    }
    

    Vandy

  • Grep for styling the second occurrence of a Word

    Hi all

    I'm putting a dictionary for children.

    name of the bicycle

    a vehicle with two wheels in tandem, usually propelled by pedals attached to the rear wheel by a chain and have the handlebars for steering and a saddlelike seat. • Some find it faster to ride a bicycle and weaving through cars to take the bus or drive a private car.

    I managed to match the first occurrence of the bicycle to the second (underlined below) using the following grep.

    (?:^( \w+).+\r.+(\r.+)?) (\1)

    bike noun

    a vehicle with two wheels in tandem, usually propelled by pedals attached to the rear wheel by a chain and having the steering handlebars and a seat saddlelike. • some found it quicker to mount a bike and weaving through cars to take the bus or drive a private vehicle.

    This grep (that which) works as expected in the dictionary, but now I need to be able to select only the second word (in italics and in red in the example above) to be able to give him the correct character style.

    Any help would be greatly appreciated.

    Thanks in advance.

    Stephen

    GOAL!

  • Why after effects CC makes only 12 seconds?

    I just got after effects cloud creatives and to try, I did 2 video long minutes. When it's time to make it, he will make only 12 seconds and stop, when I try to make more, the lines goes from green to blue. If anyone knows how to solve this problem, it would be really nice! By the way, I got a Mac Book Pro with the latest version of Mac OS X.

    Basics of EI:

    FAQ: Why preview RAM only play in my composition?

    Mylenium

  • ToolBoxTools.addEventListener works only every second time

    Hello!

    Our layouts often enough by clicking on the tool 'page' in error, and it's happened several times, that it changes the size of the page without even noticing. Because there is no way to remove the tool from the toolbar (I guess?), I want to write a script, which displays at least a message that the page tool ("Seitenwerkzeug" in German) has been selected. Unfortunately, the event listener works only every second time:

    1 indesign begins > selection tool is active

    2. click on the tool page > message > tool page is active

    3. click on "another outil1" > "other outil1" is active

    4. click on "other tool2" > "other outil1" is active

    5. click on the tool page > nothing happens, page tool icon is active, but the 'tool2 another' icon is still active, too, and 'another tool2' is always on

    6. click on "other tool3" > "other tool3" is active

    7. click on the tool page > message > tool page is active

    8. ......

    No idea why this is?

    My script:

    #targetengine myToolListener

    app.toolBoxTools.addEventListener ("afterAttributeChanged", changeToolAlert);

    function changeToolAlert() {}

    If (app.toolBoxTools.currentToolName == "Seitenwerkzeug") {}

    Alert ("Message", "Title");

    }

    Exit(); I tried with and without this!

    }

    At first, I tried to use a confirmation message instead of an alert, who had the same problem and I thought it would be because the change does not work... but it seems that I can't yet work with information without something to 'crash' in the background?

    My previous confirm function:

    function changeToolConfirm() {}

    If (app.toolBoxTools.currentToolName == "Seitenwerkzeug") {}

    var confirmDialog = confirm ("You want to activate the page tool?", true);

    {if(!confirmDialog)}

    app.toolBoxTools.currentTool = UITools.SELECTION_TOOL;

    }

    }

    }


    I really hope someone has an idea

    Best,

    Anke

    Hi Anke,

    The problem, I think, comes from the fact that the Page Tool selection event (which you listen via afterAttributeChanged) needs time to complete. Since alert() and confirm() education gives focus to a new modal window before the event lifecycle is completed, the GUI becomes unstable, state icon described is not properly restored and your event management does not.

    One way to solve this problem would be a temporary queue listener IdleEvent once the Page Tool selection event is taken. In other words, we do not start one any modal dialog box as long as the GUI is refreshing.

    Something like this:

    //====================================================
    // PageToolDisclaimer.jsx
    //====================================================
    
    // Should be useable as a startup script, no #targetengine required
    // NB - MutationEvent is known to create a global 'evt' variable
    // so we don't seem to need a persistent session engine here :-)
    // That's why the active script File is used as the event handler
    
    (function(/*File*/EVENT_HANDLER, /*str*/TASK_NAME, /*uint*/TASK_TIME, /*str*/PAGE_TOOL_NAME)
    {
        var t;
    
        // Installer
        // ---
        if( !(t=app.toolBoxTools.eventListeners).length )
            {
            t.add(MutationEvent.AFTER_ATTRIBUTE_CHANGED, EVENT_HANDLER);
            return;
            }
    
        // IdleEvent handler (--> confirm)
        // ---
        if( (t=app.idleTasks.itemByName(TASK_NAME)).isValid )
            {
            t.eventListeners.everyItem().remove();
            t.remove();
            if( !confirm("***WARNING***\rDo you really want to activate the page tool?", true) )
                {
                app.toolBoxTools.currentTool = UITools.SELECTION_TOOL;
                }
            return;
            }
    
        // PageTool event handler
        // ---
        if( ('evt' in $.global) && 'currentToolName'==evt.attributeName && PAGE_TOOL_NAME==evt.attributeValue )
            {
            evt.stopPropagation();
            app.idleTasks.add({name:TASK_NAME, sleep:TASK_TIME})
                  .addEventListener(IdleEvent.ON_IDLE, EVENT_HANDLER);
            }
    })(app.activeScript, 'WaitPageTool', 400, app.translateKeyString('$ID/Page Tool'));
    

    Hope that helps.

    @+

    Marc

  • It shows the logo, but is not on even a while it does, but for only 2 seconds then shows new logo

    It shows the logo, but is not on even a while it does, but for only 2 seconds then shows new logo

    Hello

    Follow the instructions here, including contacting Apple Support or your Genius Bar reservation if necessary:

    If your iPhone, iPad or iPod touch won't turn on - Apple Support

  • I have a partitura with 18 instruments. Problem is that only 16 of the sheed. How can I vertically down the music?

    I have a partitura with 18 instruments. Problem is that only 16 of the sheed. How can I vertically down the music?

    Make a score set with 18 all instruments. Then use the scale parameter set score to all fit on a single page.

  • My touch screen has a problem after downloading the IOS 9.0.2. Already try apple advises the steps. But the problem still occur. Already done restart of strength. Factory setting Reset also possible. But still the same problem. Can only be used at one min

    Hello!!!

    IM Apple Fan.

    Purchased IM Ipad2, Ipad4, Iphone6

    Last month I already buy s Iphone6 +.

    Today I feel unhappy

    MY IPHONE 6 'history '.

    My touch screen has a problem after downloading the IOS 9.0.2.

    Already called and try apple advises the steps. But the problem still occur.

    Already done restart of strength. Factory setting Reset also possible. But still the same problem.

    Only can be used for a minute. After that... The problem comes in again & again & again...

    APPLE.COM

    Can U help me

    Only products of Apple of love before updating the version 9.0.2

    iOS 9.0.2 happened some time. The last iOS is iOS 9.2. If you have not updated, updated. If you restored to the factory, it must have downloaded iOS 9.2. Also, if you restore to the factory and the problem is still there, then you must make an appointment at the Genius Bar to the nearest Apple store or Apple authorized service provider or call the Apple Support to have the device examined by Apple. There seems to be something wrong with the screen.

  • Each second ping fails

    Hi all

    I have a little test lan with the installation of 2611xm for ipsec vpn.

    On each fe port I have a laptop plugged directly inside, int is assigned by dhcp, and outside at this stage is static.

    I use 3rd party ipsec client program shrewsoft customer vpn.

    The tunnel rises and its is established with many packages of encryption and decryption.

    As mentioned in the title, each second ping fails in both directions from client to client, router 100% inside the cell phone pings and fails to address assigned 192.168.1.10 to the client ipsec "remote".

    Here is my config and below that, I think that highlights where might be the cause, the arp entry address assigned ipsec is incomplete.

    An ipconfig/all on the "remote" client shows a mac address of the int as aaaa.aaaa.aa00 tunnel.

    Kind regards

    Mitchell

    config:

    Router #show run
    Building configuration...

    Current configuration: 2139 bytes
    !
    version 12.3
    horodateurs service debug datetime msec
    Log service timestamps datetime msec
    no password encryption service
    !
    router host name
    !
    boot-start-marker
    boot system flash: c2600-ik9s - mz.123 - 6f.bin
    boot-end-marker
    !
    !
    no location network-clock-participate 1
    No network-clock-participate wic 0
    No aaa new-model
    IP subnet zero
    IP cef
    !
    !
    no ip domain search
    IP domain name vpn.changeme.com
    IP-server names 4.2.2.2
    DHCP excluded-address IP 192.168.0.0 192.168.0.9
    !
    internal IP dhcp pool
    network 192.168.0.0 255.255.255.0
    default router 192.168.0.1
    4.2.2.2 DNS server
    domain vpn.changeme.com
    !
    !
    !
    !
    !
    !
    !
    !
    !
    !
    !
    !
    !
    !
    !
    Keyring cryptographic remote_user
    pre-shared key address 0.0.0.0 0.0.0.0 key xxxx
    !
    crypto ISAKMP policy 1
    BA aes 256
    preshared authentication
    Group 5
    ISAKMP crypto nat keepalive 5
    crypto ISAKMP client configuration address pool local ipsec
    !
    ISAKMP crypto client configuration group remote_user_group
    key xxxx
    outdoor pool
    ISAKMP crypto profile remote_user
    Keychain remote_user
    remote_user_group group identity match
    !
    !
    Crypto ipsec transform-set esp - aes 256 esp-sha-hmac DYN_TFS
    !
    crypto dynamic-map DYN_MAP 1
    game of transformation-DYN_TFS
    REMOTE_USER Set isakmp-profile
    !
    !
    launch of the card client configuration address card crypto
    card crypto card client configuration address respond
    map 1-isakmp ipsec dynamic crypto map DYN_MAP discover
    !
    !
    !
    !
    interface FastEthernet0/0
    ETHERNET INTERNAL description
    the IP 192.168.0.1 255.255.255.0
    automatic duplex
    automatic speed
    !
    interface Serial0/0
    no ip address
    Shutdown
    no fair queue
    !
    interface FastEthernet0/1
    WAN ETHERNET description
    10.1.1.1 IP address 255.255.255.0
    automatic duplex
    automatic speed
    No cdp enable
    card crypto map
    !
    interface Serial0/1
    no ip address
    Shutdown
    !
    IPSec local pool 192.168.1.10 IP 192.168.1.100
    IP http server
    no ip http secure server
    IP classless
    Driving IP profile
    IP route 192.168.1.0 255.255.255.0 FastEthernet0/1
    !
    !
    access list 101 ip enable any 192.168.0.0 0.0.0.255
    !
    !
    !
    !
    !
    !
    !
    !
    Line con 0
    Synchronous recording
    line to 0
    line vty 0 4
    privilege level 15
    opening of session
    transport telnet entry
    !
    !
    !
    end

    ARP on the router #show
    Protocol of age (min) address Addr Type Interface equipment
    Internet 10.1.1.2 0 001b.d338.0bab ARPA FastEthernet0/1
    Internet 10.1.1.1 - 0017.5993.a6c1 ARPA FastEthernet0/1
    Internet 192.168.1.10 0 incomplete ARPA
    Internet 192.168.0.1 - 0017.5993.a6c0 ARPA FastEthernet0/0
    Internet 192.168.0.2 1 001b.d338.0b7c ARPA FastEthernet0/0

    The "Internet 192.168.1.10 ARPA incomplete 0 " output does not seem right. "."

    The router should not have even this particular ARP entry because there is no router with the 192.168.1.0/24 subnet interface, so there is no reason for the router to ARP for this subnet unless you connect a PC with the 192.168.1.10 ip address previously. I suggest that you turn off the router ARP entry "clear arp.

    For the following path statement: ip route 192.168.1.0 255.255.255.0 FastEthernet0/1, I would like to change the next hop of the fa0/1 to the actual ip address of the next hop router (or your ip address of PC if you connect directly a PC to the router interface fa0/1), that is to say:

    IP route 192.168.1.0 255.255.255.0 10.1.1.x

    Hope that helps.

  • Cabinet detects 2 problems during analysis, but in the end that he said found no problem and the only option I have is to click Finish

    I have downloaded Microsoft Windows Malicious Software Removal Tool (KB890830) - to install the CAB file switch and it detects 2 problems during analysis, but in the end that he said found no problem and the only option I have is to click Finish. I tried several times with the same result of detection 2 never, he gets rid of them. Help?

    OT: Malware

    On Saturday, April 5, 2014 22:59:18 + 0000, JChabler wrote:

    Where? I find only free trials to detect, but you have to pay to resolve.

    Go to https://www.malwarebytes.org/ and lower-left button
    corner, one that says "Free download."

Maybe you are looking for