notepad++

Need help removing strange characters from string

 ̄綄美尐妖づ 提交于 2019-12-24 10:59:19
问题 Currently when I make a signature using java.security.signature, it passes back a string. I can't seem to use this string since there are special characters that can only be seen when i copy the string into notepad++, from there if I remove these special characters I can use the remains of the string in my program. In notepad they look like black boxes with the words ACK GS STX SI SUB ETB BS VT I don't really understand what they are so its hard to tell how to get ride of them. Is there a

Replace using RegEx in notepad++

爱⌒轻易说出口 提交于 2019-12-24 10:38:08
问题 I would like to replace all names in an XML file tagged by with let's say xyz. In other words, replace everything (including whitespace) between the tags. What am I doing wrong? Search: (<name>)(.*)(</name>) Replace: \1xyz\3 回答1: You are trying to parse XML with regular expressions. However, what you are doing wrong anyway is using a greedy repetition. This will go all the way from the first <name> to the very last </name> (even if they do not belong together), because the .* will try to

Getting last match from multiple matches

半世苍凉 提交于 2019-12-24 08:46:33
问题 I am trying to match and get the last occurrence of a pattern in my file using notepad++. My text: X12 Source =asdjkasjd file="x/y1.dun" "x/y2.dun" "x/y3.dun" asds12 X22 p/q/xy.dun asda=23 source =asdf X44 1000 1001 file="abc.dun" What I expect using find-and-replace is this: X12 x/y3.dun X22 p/q/xy.dun X44 abc.dun What I have tried so far: (X\d{2}).*?([^"\s]+dun)((?!X\d{2}).)* replace with: $1\t\t$2\n But it returns me this: X12 x/y1.dun //Which is the first match X22 p/q/xy.dun X44 abc.dun

Notepad++ FTP Keep disconnecting and freeze after 5 minute of inactivity

别来无恙 提交于 2019-12-24 05:53:02
问题 Notepad++ FTP Keep disconnecting and freeze after 5 minute of inactivity Did anyone get this problem too? If yes did anyone succeed to fix it? It is very frustrating while programming because after 5 minutes of scripting when I come to save the file with the FTP plugin of notepad++ it freeze in the background and I must wait 50 seconds, plus I need to re-save right after because it didn't the time it frozen. 回答1: It is possible you are encountering a known defect. Honestly, I have switched

Notepad++ - delete all lines with certain text

折月煮酒 提交于 2019-12-24 03:23:56
问题 I have notepad++ 5.8.2 and I was trying to remove all lines starting with 'Processed XXXXX total records' where XXXXX is a various number. I tried to CTRL+H and put 'Processed.$ in Find what selecting Regular Expression and putting blank in Replace with but it doesn't even find those lines Processed. Did I do something wrong in regex expression to find and replace them? 回答1: This will help you: Press CTRL + H Select Regular Expression at the bottom Find ^Processed \d+ total records.*? Click

How to disable 'shift'+'alt' keyboard shortcut in Notepad++

a 夏天 提交于 2019-12-24 02:39:08
问题 The shortcut Shift + Alt changes the keyboard configuration. How can I disable this shortcut? I searched for a shortcuts map, but I could not find any. 回答1: That must be a Windows IME shortcut, it has probably nothing to do with Notepad++. If you see the language bar in the Windows taskbar right click on it, click Settings and under Key settings or Advanced key settings (depending on the Windows version) you'll find this shortcut and you'll be able to change/remove it. 来源: https:/

How can I Find/Replace multiple strings in an xml file?

廉价感情. 提交于 2019-12-24 01:42:14
问题 I have about 600 different text strings that I need to replace within an XML file (I am using notepad++ though I can use other programs too if this would accomplish the task). The text changes are listed in a separate excel file. Is there a way that I can run a script or command to find/replace all of the strings in one shot, without having to do each one individually? Thank you 回答1: You could use some simple VBA to do the job from within your Excel s/s. Call the below Sub by passing in the

Failure when trying to compile pascal programs via Notepad++?

时光总嘲笑我的痴心妄想 提交于 2019-12-23 16:34:40
问题 I'm trying to complile pascal files with Notepad++ on Free Pascal Compiler. I've been instructed to use the following script: NPP_SAVE cd $(CURRENT_DIRECTORY) C:\FPC\2.6.4\bin\i386-win32\ppcrossx64.exe $(NAME_PART).pas But when I try to run the program, Notepad++ console gives me the following message: NPP_SAVE: C:\FPC\2.6.4\bin\i386-win32\new 1.pas CD: C:\FPC\2.6.4\bin\i386-win32 Current directory: C:\FPC\2.6.4\bin\i386-win32 C:\FPC\2.6.4\bin\i386-win32\ppcrossx64.exe new 1.pas Process

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

拟墨画扇 提交于 2019-12-23 15:47:13
问题 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 is the correct regex? 回答1: You can use negative lookbehind regex: /(?<!\s)$/mg RegEx Demo 回答2: You can use lookbehind for this purpose: (?<=[^\s])$ See DEMO 来源: https://stackoverflow.com/questions/30492293/regex-how-to-match-all

Notepad++ - make functions “clickable”?

巧了我就是萌 提交于 2019-12-23 15:33:47
问题 I just thought about this maybe being useful, but I can't find a way to do it. Is there a way, in Notepad++, to make function names "clickable" -- ie make them links, so that if you click on them, it automatically takes you to its definition (ideally across an entire code-base)? 回答1: At the moment there's no plugin offering directly clickable function names. But you could try the plugin SourceCookifier together with some N++ tweaking. Open N++'s "contextMenu.xml" and add this line somewhere: