• Replace what's within X and X - list. Help needed.

    3
    0 Votes
    3 Posts
    2k Views
    guy038G

    Hello Jessica,

    I suppose that the values Emma and Dave are part of a list of first names, aren’t they ?

    Therefore, it would be interesting to extend this S/R regex to any number of first names, that are to be replaced !

    So, could you tell us how you detect the xxxx and yyyy strings, inside a block [object]....[/object] and could you provide an short example of your text, to illustrate the changes that are needed ? Thanks !

    Best Regards,

    guy038

  • Find/Replace shifts data to the right

    Locked
    7
    0 Votes
    7 Posts
    4k Views
    Jim DaileyJ

    That was it! Thanks, and welcome to the site.

  • SecurePad with download/install

    Locked
    1
    0 Votes
    1 Posts
    3k Views
    No one has replied
  • CTRL V messed up

    Locked
    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • FunctionList fails to work with JS files, but works with embedded JS

    Locked
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • How to cut/paste a value multiple times AND increment it?

    Locked
    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • Finding sentences open with quotation marks and not closed

    3
    0 Votes
    3 Posts
    12k Views
    guy038G

    Hi, Vittorio,

    Thinking again about this topic, I was able to improve, a bit, my previous search regex.

    With the regexes below, it’s possible to detect any ODD number of double quotation characters, ", in a sentence or, by default, in a complete line of text :-). Naturally, these new regexes seem rather tricky, but they do work !!

    The first regex, below, will select the last double quotation mark, NOT balanced in a sentence, or, by default, in a complete line :

    SEARCH (^|\.)(?:([^".\r\n]*)"(?2)")*(?2)\K"(?=(?2)(\.|$))

    NOTES :

    The first group 1, (^|\.), represents a beginning of line or the possible dot of the previous sentence.

    The group (?:([^".\r\n]*)"(?2)") represents any range, even null of well-balanced suites, of the form ....."..."..."......". Note that it’s a non-capturing group, due to the syntax ?:, at beginning of that group.

    Therefore, the second group 2 is ([^".\r\n]*), inside the non-capturing group, which represents any range, even null, of characters, different from a double quotation character, a dot character and an EOL character.

    The regex of this second group, is re-used, further, in the regex, as a called subroutine (?2) to that group 2. So, writing the syntax (?2) is exactly like writing the regex [^".\r\n]* !

    And, like in my previous post, the final regex, searched, is the double quotation, only, after the \K syntax and before the look-ahead (?=(?2)(\.|$)), which looks a range of characters, not ", nor ., till the end of the sentence or the line.

    The second regex will stop at the beginning of any line or sentence, which contains an ODD number of double quotation characters :

    SEARCH (^|\.)\K(?=(?:([^".\r\n]*)"(?2)")*(?2)"(?2)(\.|$))

    NOTES :

    This time, that second regex matches the empty string, located, between the a beginning of line ( or a dot of a previous sentence ) and a look-ahead, that tries to detect , FROM this current position, if there an odd number of double quotation marks, till the end of a sentence or a line !

    So you’re immediately aware that there’s an unbalanced double quotation character, further on the current line :-)

    To see the behaviour of these two regexes, just do a test, on the simple subject text below :

    Line 1 " Line 2 "" Line 3 """ Line 4 """" Line 5 """"" Line 6 """""". "Second" "sentence

    With the first regex, it should select the last " character of the lines 1, 3 and 5, only, and the ", just before the word sentence.

    With the second regex, the cursor should be located, at beginning of the lines 1, 3 and 5, only, and just after the dot , on line 6.

    To end with :

    You may, of course, change, in the regex, the double quotation mark by a single quotation mark, for instance. However, note that these regexes above, are NOT suitable, when the start and stop character are different, as for the couple ( and ) or even the French quotation marks and ! It’s an other story… )

    If you don’t care about the notion of sentences, you can simplify these regexes, changing the anchor (^|\.) into ^ and the anchor (\.|$) into $

    Cheers,

    guy038

  • Don't apply continue character in certain cases?

    Locked
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • 0 Votes
    4 Posts
    3k Views
    tomas-chrastinaT

    Hi,

    I assume problem is with quote character, as it’s special character while defining multi-part keyword. You need to escape it using \(backslash). Define your keyword group like:

    Level=\"ERROR\"

    Also here you can find UDL documentation -> UDL2.0.

    Best regards,
    Tomas.

  • 0 Votes
    1 Posts
    2k Views
    No one has replied
  • Strange marker and code.

    Locked
    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • Notepad ++ moves to a different monitor after using right click menu

    Locked
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Html+Css problème

    3
    0 Votes
    3 Posts
    2k Views
    Iris NeuerversuchI

    Je ne comprend pas ta question.

  • UDL 2 whitespace problem

    3
    1 Votes
    3 Posts
    6k Views
    tomas-chrastinaT

    Hi Mark,

    this would be good feature to add. I also had need to be able to define some kind of escaped keywords, due to problem with Operators. To be able to define keyword that include Operator 1.

    But what you asked can be achieved, but only if you have NOT .(dot) defined as Operator 1. Then you can define Keywords List group with Prefix mode like:

    city. country. whatever.

    Sure it’s not perfect solution. I also defined UDL languege, and made some decisions what is more important using current features. For example disabled some Operators to be able to highlight keywords.

    If you have .(dot) as operator (as far as I can see in your language, it should be), then there’s need enhancement to current features of UDL.

    Best regards,
    Tomas.

  • FTP can't upload files.

    4
    0 Votes
    4 Posts
    5k Views
    Cow BovineC

    When using NppFTP, are you verifying your firewall and proper protocol ports are open (remember both source and destination locations must allow the intended FTP, SFTP, FTPS, etc.)? Did you verify that you opened Notepad++ in Administrator mode before using the NppFTP plugin? Otherwise, I’m not sure.

  • Ctr+l problem

    Locked
    5
    0 Votes
    5 Posts
    4k Views
    Bojan MeglaB

    Yes, I’ve done exactly that :)

    Thanks for the help ;)

  • Sorting rows with 2 integers

    Locked
    3
    0 Votes
    3 Posts
    2k Views
    G WarnerG

    Thanks for the advice, though I did find a simple ‘work-around’. But I will always look into everyone’s suggestions.

  • VirusTotal.com has ClamAV reporting Win.Trojan.Ramnit-6818 infections

    Locked
    2
    1 Votes
    2 Posts
    4k Views
    palswimP

    I have seen the same thing.

    I traced the introduction of the virus (or match) in the change from 6.7.4 to 6.7.5.

  • XML syntax highlighting crashes on "Script" tag.

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    dailD

    This behavior is default to Scintilla (the editing component that Notepad++ uses). The reason it does this is because Scintilla treats XML and HTML pretty much the same. The “Script” tag is special to HTML which contains code…so it highlights anything within the “Script” tag differently, but in this case it should treat it as normal XML. You should report this issue over at the Scintilla project page.

  • Can't get spell check to work after upgrade

    Locked
    1
    0 Votes
    1 Posts
    2k Views
    No one has replied