notepad++

Add a new line after a matched pattern in Notepad++

本秂侑毒 提交于 2021-02-02 09:50:09
问题 I have a csv-file, now i need to bring it in another form. I want to have a line break \r\n after a specific pattern. All patterns look like this: true or false; int number between 0 and 100; decimal number with two or three digits after the point; true or false; For example: false;2;23.987;false; true;0;8.37;false; false;8;166.987;false; and after the last semicolon, i want to have a line break. I am using notepad++. Thanks for your help 回答1: You may use \b(?:true|false);\d+;\d+\.\d+;(?:true

Can't use ^ to say “all but”

给你一囗甜甜゛ 提交于 2021-02-02 09:45:44
问题 I have a text in which I want to get only the hexadecimal codes. Like: "thisissometextthisistext\x64\x6f\x6e\x74\x74\x72\x61\x6e\x73\x6c\x61\x74\x65somemoretextoverhere" It's possible to get the hex codes with \x.. But it doesn't seems I can do something like (^\x..) to select everything but the hex codes. Any workarounds? 回答1: You may use a (?s)((?:\\x[a-fA-F0-9]{2})+)|. regex (that will match and capture into Group 1 any 1+ sequences of hex values OR will just match any other char including

记录MySQL 8在windows 10系统下用Delete语句删除了记录用自带的mysqlbinlog复原方法

穿精又带淫゛_ 提交于 2021-02-01 09:05:50
前提条件: 1.你的MySQL数据库开了binlog功能; 2.用了Delete删除语句,删除的是表里的记录,不是整个表; 怎么看我的MySQL数据开没开启binlog功能呢? 登入mysql,然后输入指令: show variables like '%log_bin%'; 第二个红框显示ON说明已经开启binlog功能; Variable_name Value log_bin ON 我安装MySQL 8 的时候没有注意这里,好像是默认打开的;在我的配置文件里也没有显示的有,可是就是开了,MySQL 8就是这么好用么?; 没打开binlog的怎么打开呢? 打开my.ini文件,添加如下配置,重启mysql即可开启 # log-bin log - bin = mysql - bin binlog_format = ROW 我没试过的啊,因为我的已经打开了的… 然后输入指令,查到有3个binlog日志文件: show binary logs ; 找到你的这几个文件位置,我的是在MySQL的安装目录下和bin文件夹平级的data目录下: 这3个文件的修改日期以15结尾的这个是最后修改的,我刚好是这个时候做了删除一条记录的测试,因此我重点准备放在这个文件上; 输入指令: show binlog events in 'binlog.000015' ; 看到有个Delete_rows

假如你还是python小白

爷,独闯天下 提交于 2021-01-31 21:32:50
(点击上方快速关注并设置为星标,一起学Pyhton) ↑ 关注 + 星标 ,每天学Python新技能 后台回复【 大礼包 】送你Python自学大礼 前两天python猫作者豌豆花下猫的一篇文章里,提到如果只推荐一本python书,就是《流畅的python》。 这本书算得上python开发者的枕边书, 即使你是老司机,一定还存在不少知识盲区,而这本书能帮你解惑, 没事可以拿来经常翻翻 但是, 如果我还是初学者,还是小白,正打算学Python,这本书可能不合适你。 因为流畅的python不是一本入门教程,它的目标读者定位在中高级开发者,如果让我推荐一本入门级的python书,而且只推荐一本书的话,恐怕就是 《Python编程从入门到实践》 其实,这本书甚至不需要我做过多介绍,因为不管你是去豆瓣,还是京东,当当等平台,这本书在同类书中永远都是高评分,销量永远都靠前甚至是霸榜。 《Python编程从入门到实践》第一版是2016年出的,那时候尽管官方已经在劝说大家迁移到python3,但Python2依然是市场的主力军。 而这本书那时就富有远见的同时采用python2和python3对比来讲解。 随后的几年,python3被越来越多的人接受,直到今年官方彻底放弃对python2的维护。python3也进入到3.9的版本,这本书也迎来了第二版。

How to compile SML using SMLNJ while the code is in Notepad++?

醉酒当歌 提交于 2021-01-29 17:30:45
问题 I'm completely new to SML and I have no idea how to work with anything related to it. I am supposed to use the SMLNJ compiler and I'm currently coding using Notepad++. But how do I compile the program exactly? Do I copy and paste the code in the SMLNJ command line thing? Or is there an environment for SMLNJ I can actually code in and compile my code? PLEASE HELP! 回答1: If by "compile" you mean "compile to a stand-alone executable" -- don't worry about that when first learning the language as a

C语言打卡第二天

戏子无情 提交于 2021-01-28 09:32:17
总结一下今天所学的以前不知道的内容: 1、C语言中提供的函数比如scanf.......存在不安全,如果使用VS提供的函数则会存在跨平台障碍,因此在源文件第一行写#define _CRT_SECURE_NO_WARNINGS 1来忽略函数存在不安全的警告或错误。 使默认有这句话的话应该右击软件管家中的VS2010,打开文件位置,Program Files(X86 ),Microsoft Visual Studio 10.0,VC,vcprojectitems, 右击newc++file,用Notepad++ 写上那句话就可以每次默认忽略不安全问题了。 2、const 修饰的常变量,只要在变量之前写上const该变量就不能变了,比如 const int num 此时num是一个变量,但是拥有常属性。 3、枚举常量例子如下 #include<stdio.h> enum Sex { MALE, FEMALE, SECRET }; int main() { enum Sex s=MALE; return 0; } 来源: oschina 链接: https://my.oschina.net/u/4404863/blog/4927347

Regex to find a multi line string that includes another string between lines

南楼画角 提交于 2021-01-27 08:16:47
问题 my first Q here. I have a log file that has multiple similar strings as hits: Region: AR OnlineID: Atl_Tuc ---Start--- FIFA 18 Legacy Edition ---END--- Region: FR OnlineID: jubtrrzz ---Start--- FIFA 19 Undertale Pro Evolution Soccer™ 2018 ---END--- Region: US OnlineID: Cu128yi ---Start--- KINGDOM HEARTS HD 1.5 +2.5 ReMIX ---END--- Region: RO OnlineID: Se116 ---Start--- Real Farm EA SPORTS™ FIFA 20 LittleBigPlanet™ 3 ---END--- Region: US OnlineID: CAJ5Y ---Start--- Madden NFL 18: G.O.A.T.

Select and Delete entire column in notepad++

喜欢而已 提交于 2021-01-27 06:56:42
问题 Is there any way to select and delete entire column in notepad++? Assume that there is a log like that in notepad++: Dec 14 14:49:34 : Dec 14 14:49:35 : Dec 14 14:49:36 : Dec 14 14:49:37 : I want to select and delete Just Dec in sample log above. All other columns are wanted! 回答1: Notepad++ column mode can be driven from the keyboard. Position the cursor at one corner of the wanted area. Press and hold down the Alt and Shift keys. While holding down the Alt and Shift keys use the arrow keys

Select and Delete entire column in notepad++

守給你的承諾、 提交于 2021-01-27 06:54:12
问题 Is there any way to select and delete entire column in notepad++? Assume that there is a log like that in notepad++: Dec 14 14:49:34 : Dec 14 14:49:35 : Dec 14 14:49:36 : Dec 14 14:49:37 : I want to select and delete Just Dec in sample log above. All other columns are wanted! 回答1: Notepad++ column mode can be driven from the keyboard. Position the cursor at one corner of the wanted area. Press and hold down the Alt and Shift keys. While holding down the Alt and Shift keys use the arrow keys

notepad++对比文件插件教程

心已入冬 提交于 2021-01-27 06:11:59
1.单开notepad++ ,单击plugins(插件),选中plugin manager,单击分支show plugin manager。 2.弹出plugin manager选项框。单击settings。 3.弹出plugin manager settings选项框后,勾选全部。 4.重启notepad++,重新点开plugin manager,在available里勾选compare。单击install。 (该图为百度截图,实际图片因为已经安装过compare,无法截图) 5.按提示重启notepad++ (该图为百度截图,实际图片因为已经安装过compare,无法截图) 6.比较文件。 7.在plugins选择compare,单击compare进行对比文件的不同之处 notepad++网盘下载地址: http://pan.baidu.com/s/1nuGsi0L 密码:79sg 来源: oschina 链接: https://my.oschina.net/u/4283651/blog/3978992