例如我有:
hello I am ...
For the reason ...
Not sure if ...
Run Code Online (Sandbox Code Playgroud)
我想保留hello和For并Not摆脱记事本++中每一行中的其余部分。
我正在使用 Notepad++ 并想用点替换数字之间的逗号。像下面的文本文件:
00:00:00,166 --> 00:00:03,999 在本节中,我们将了解
应该如下所示:
00:00:00.166 --> 00:00:03.999 在本节中,我们将了解
谢谢
我正在尝试使用记事本++选择一个新行并将其替换为“','”,以便我可以在PHP中将其用作数组,然后对其进行处理,但我不知道在该中使用什么正则表达式搜索和替换表格。
下面是我所拥有的
Tunneller
Turf Accountant
Turkey Farmer
Turner
Tutor
Typesetter
Typewriter Engineer
Typist..
Run Code Online (Sandbox Code Playgroud)
你想要得到像这样的东西 - 类似数组的语法来输入我的 php 文档。
$array = ['Tunneller','Turf','Accountant','TurkeyFarmer','Turner','Tutor','Typesetter','Typewriter Engineer','Typist']
Run Code Online (Sandbox Code Playgroud)
谢谢。
如何在Notepad ++中查看我的代码输出作为网页或类似的东西?
我已经构建了一些东西,但我在记事本中找不到按钮或类似的东西,将其视为网页或类似的东西.
这一切都是因为我尝试通过右键单击文本文件然后选择“使用记事本++编辑”来打开一个非常大的文件。从那时起我就删除并重新安装了。我已按照( https://community.notepad-plus-plus.org/topic/21755/notepad-not-responding/2 )中的步骤操作,但是当我放置步骤2和3中列出的项目时..它告诉我它们不是有效的命令。目前,如果我打开它,它会说“没有响应”并且无限期地保持这种状态。有什么想法可以让它运作起来吗?
我必须在Notepad ++ </con>和之间提取文本<con(即删除除这两个单词之间的文本以外的文本)。
我的示例数据如下:
<abstract>
<sentence>The <cons lex="CD4_coreceptor" sem="G#protein_molecule">CD4 coreceptor</cons> interacts with <cons lex="non-polymorphic_region" sem="G#protein_domain_or_region">non-polymorphic regions</cons> of <cons lex="major_histocompatibility_complex_class_II_molecule" sem="G#protein_family_or_group">major histocompatibility complex class II molecules</cons> on <cons lex="antigen-presenting_cell" sem="G#cell_type">antigen-presenting cells</cons> and contributes to <cons lex="T_cell_activation" sem="G#other_name">T cell activation</cons>.</sentence>
<sentence>We have investigated the effect of <cons lex="CD4_triggering" sem="G#other_name"><cons lex="CD4" sem="G#protein_molecule">CD4</cons> triggering</cons> on <cons lex="T_cell_activating_signal" sem="G#other_name">T cell activating signals</cons> in a <cons lex="lymphoma_model" sem="G#other_name">lymphoma model</cons> using <cons lex="monoclonal_antibody" sem="G#protein_family_or_group">monoclonal antibodies</cons> (<cons lex="mAb" sem="G#protein_domain_or_region">mAb</cons>) which recognize different <cons lex="CD4_epitope" sem="G#protein_family_or_group">CD4 …Run Code Online (Sandbox Code Playgroud) 我有一个多个记录的文本文件.每个记录都有一个字段,其中包含一些前导零,我需要用这些空格替换.记录将如下所示:
A206 000001204 X4609
Run Code Online (Sandbox Code Playgroud)
我需要记录看起来像这样:
A206 1204 X4609
Run Code Online (Sandbox Code Playgroud)
我对正则表达式非常不熟悉,但以下正则表达式似乎找到了我需要的匹配项:
\b0+
Run Code Online (Sandbox Code Playgroud)
但是,我不知道如何更换.NoteA ++的ReplaceAll会很棒但我也可以根据需要用C#,Powershell或Python创建一个快速程序.任何人都可以给我一些关于正则表达式的指针吗?
我是这个编辑器的新手,我想知道在notepad ++中编写PHP代码的基础知识,例如我应该创建哪个文件,以及从哪个选项?
我使用 GCC 为 Windows 10 (mingw-64) 编译了以下 C 代码:
#include <stdio.h>
int main(){
printf("Hello World!");
return 0;
}
Run Code Online (Sandbox Code Playgroud)
用命令
gcc.exe -o 测试 test.c
它有效是因为当我执行生成的文件时,我确实得到了一个 Hello World!在控制台中,但是我很惊讶,因为当我在记事本 ++ 中打开 test.exe 时,它有 220 行长,其中包含一些可读文本,例如
地址 %p 没有图像部分 VirtualQuery 在地址 %p 处失败了 %d 个字节
并且
未知的伪重定位协议版本 %d。未知的伪重定位位大小 %d。
然而,当我在 Sublime Text 3 中打开同一个文件时,我得到了超过 3300 行的一些看似随机的数字和字母,例如:
4d5a 9000 0300 0000 0400 0000 ffff 0000
b800 0000 0000 0000 4000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 …Run Code Online (Sandbox Code Playgroud) 我正在尝试在 NotePad++ 中的单词和数字之间添加空格。例如:
号码1234567
号码2345678
到
号码 1234567
号码 2345678
notepad++ ×10
regex ×4
php ×2
arrays ×1
assembly ×1
c ×1
c# ×1
editor ×1
machine-code ×1
powershell ×1
python ×1
sublimetext3 ×1