AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
主页 / user-640165

Just Me's questions

Martin Hope
Just Me
Asked: 2023-03-06 05:23:14 +0800 CST

如何从 WhereIsIt 目录软件中提取数据库并将该数据库保存为 excel 或文本文件?

  • 6

谁能知道如何从 WhereIsIt 目录软件中提取数据库并将该数据库另存为 excel 或文本文件?

在此处输入图像描述

database
  • 1 个回答
  • 14 Views
Martin Hope
Just Me
Asked: 2023-03-05 20:48:45 +0800 CST

使用扩展名为 .bat 的 CMD(命令提示符)打开 Python .py 文件/代码的多个实例

  • 5

我尝试使用 CMD(命令提示符)打开 Python .py 文件/代码的多个实例。因此,我创建了一个扩展名为 .bat 的文件,每次我想打开多个 .py 文件/代码时都会运行它。

这是 .bat 文件中的代码

@echo off
"e:\Carte\BB\App-one.py" 
"e:\Carte\BB\App-two.py" 
"e:\Carte\BB\App-three.py" 
"e:\Carte\BB\App-four.py" 
"e:\Carte\BB\App-five.py" 

我唯一的问题是,当我第一次点击时,Python 关闭,cmd 只会打开第一个“App-one.py”

因此,我必须运行两次 .bat 文件才能打开所有 Python 文件/代码。

现在,我想一键打开所有 .py 文件,而不是两次。

我怎样才能做到这一点 ?

python
  • 1 个回答
  • 20 Views
Martin Hope
Just Me
Asked: 2023-02-21 01:27:00 +0800 CST

Windows10:为什么当我点击不同应用程序的其他地方时,Winamp 应用程序没有自动最小化?

  • 6

从昨天开始我有这个问题。

当我在其他应用程序上单击其他任何地方时,Winamp 应用程序不再自动最小化。基本上,Winamp 总是悬而未决,每次都在我工作的任何其他应用程序的前面。我必须单击“最小化”winamp 按钮才能将其放下,否则会停留在那里。

解决方案是什么?为什么会突然出现这种情况?

windows-10
  • 1 个回答
  • 21 Views
Martin Hope
Just Me
Asked: 2022-05-04 07:34:06 +0800 CST

正则表达式:在每行的开头添加 html 标签(没有开始标签)

  • 4

我需要 <p class="mb-40px"> 在没有此标签的每一行的开头添加。

例如:

<p class="mb-40px">moderniseringen av de omgivande flerfamiljshusen berodde helt på hans vilja.</p>

acţiunile de modernizare a blocurilor din jur depindeau în totalitate de voinţa lui.</p>

the modernization of the surrounding blocks of flats depended entirely on his will.</p>

la modernización de los bloques de pisos circundantes dependía enteramente de su voluntad.</p>

输出:

<p class="mb-40px">moderniseringen av de omgivande flerfamiljshusen berodde helt på hans vilja.</p>

<p class="mb-40px">acţiunile de modernizare a blocurilor din jur depindeau în totalitate de voinţa lui.</p>

<p class="mb-40px">the modernization of the surrounding blocks of flats depended entirely on his will.</p>

<p class="mb-40px">la modernización de los bloques de pisos circundantes dependía enteramente de su voluntad.</p>

显然这很容易

寻找:^

替换为:<p class="mb-40px">

但在这种情况下,我会在第一行得到双倍的第一个标签: <p class="mb-40px"><p class="mb-40px">

regex notepad++
  • 2 个回答
  • 105 Views
Martin Hope
Just Me
Asked: 2022-05-03 21:11:07 +0800 CST

正则表达式:查找并删除另一个标签中包含的html标签

  • 5

我有 2 个段落,带有 html 标签<p class="mb-40px"></p>在这个标签里面有文本和另一个 <p..> 标签

我需要找到并删除包含在主标签中的 html 标签<p class="mb-40px"></p>

例子:

<p class="mb-40px">Miracles every day <p lang="ro-RO" align="JUSTIFY">being at la home, the poet Petru Iliesu made an international appeal to condemn the killing of demonstrators, shot on the streets of town.</p>

<p class="mb-40px">The pleasure we feel after reading a book is different from the pleasure of tasting a dish <p class="dis23">. In the first case, pleasure is disinterested, having no particular purpose, as a release from external preoccupations.</p>

输出

<p class="mb-40px">Miracles every day being at la home, the poet Petru Iliesu made an international appeal to condemn the killing of demonstrators, shot on the streets of town.</p>

<p class="mb-40px">The pleasure we feel after reading a book is different from the pleasure of tasting a dish. In the first case, pleasure is disinterested, having no particular purpose, as a release from external preoccupations.</p>

我的正则表达式不太好:

寻找: (?:<p class="mb-40px">|\G)\S*\K(?:\h+<\s*(\w+)[^/>]*>)(?=.*</p>)

替换为:(留空)

regex notepad++
  • 2 个回答
  • 114 Views
Martin Hope
Just Me
Asked: 2022-04-07 00:41:06 +0800 CST

正则表达式:查找不以html标签开头但以其他标签结尾的行,并在开头进行替换

  • 5

我有这行,我需要将它们全部设为段落,<p class="mb-40px"></p>前 2 行没有 html 标签,但以不适当的标签结尾。第三行的末尾也有同样的不合适的标签,但开头有正确的标签。

Vă pare rău pentru ce aţi făcut?”<br />
”Can you love me?”<br />
<p class="mb-40px">Să ne imaginăm nişte răspunsuri ale agresorului.<br />

必须成为:

<p class="mb-40px">Vă pare rău pentru ce aţi făcut?”</p>
<p class="mb-40px">”Can you love me?”</p>
<p class="mb-40px">Să ne imaginăm nişte răspunsuri ale agresorului.</p>

我的两个正则表达式几乎都很好,但重复了第三行中的第一个标签

寻找:^(.*)(<br />)$

替换为:<p class="mb-40px">\1</p>

或者

寻找:^(?!<p>)(.+?)(<br />)$

替换为:<p class="mb-40px">\1<\p>

regex notepad++
  • 1 个回答
  • 573 Views
Martin Hope
Just Me
Asked: 2022-04-05 05:55:21 +0800 CST

正则表达式:删除行上的所有单词/字符串,html标签除外

  • 4

我想删除所有带有单词的行,除了 html 标签:

             <p class="bandy">Cars and jupiter</p>
            Comentezi folosind contul tău WordPress pentru a nu induce in eroare.
            
        </p>
                <p class="mb-40px">I love you</p>
            
    Seems to be a happy day with you next to me.
            
                </li>
<p class="simony">Select original books</p>

         bunica isi face cumparaturile la magazin.

输出

             <p class="bandy">Cars and jupiter</p>
            
            
        </p>
                <p class="mb-40px">I love you</p>
            
    
            
                </li>
<p class="simony">Select original books</p>
         
            

我的正则表达式不太好:

寻找:.*^(?!<p class=).*

替换为:LEAVE EMPTY

regex notepad++
  • 3 个回答
  • 871 Views
Martin Hope
Just Me
Asked: 2022-04-04 12:25:08 +0800 CST

正则表达式:查找包含其他一些特定 html 标签的所有 html 标签

  • 4

我有一些以开头<p class="mb-40px">和结尾</p>的 html 标签 第一个标签中还有一些其他标签,如你所见的</li> </ul> </div>andspaces和。\n

<p class="mb-40px"></g></svg>               </a>
            </li>
             
        </ul>

    </div>
    </p>

    <p class="mb-40px">Foarte frumos lucru</p>
<p class="mb-40px">I love cars</p>

我想查找并删除所有 html 标签,例如第一个包含</li> </ul> </div>

输出应该是:

    <p class="mb-40px">Foarte frumos lucru</p>
<p class="mb-40px">I love cars</p>

我的解决方案不好:

寻找:(?=<p class="mb-40px">)[\s\S]*?</li></div>|</ul>[\s\S]*?</p>

替换为:LEAVE EMPTY

regex notepad++
  • 3 个回答
  • 1499 Views
Martin Hope
Just Me
Asked: 2022-04-04 04:34:05 +0800 CST

正则表达式:如何从另一个 html 标签段落中删除一个 html 标签

  • 4

我有这一段:

<p class="dobe">Intră pe site-ul magazinului comandă un xerox 3D (ceea ce puteţi face şi voi intrând pe site-ul </a>  sau la numărul de telefon. Dupa ce primi xerox-ul se multiplică de atâtea ori câte oraşe există pe lume. Îşi instrui copiile să ştie unde şi cum să aşeze ouăle.</p>

我只想删除</a>后跟一个空格

我的正则表达式不好,因为被删除了整行,之后</a>不只是</a>

寻找:</a>.+\w+

替换为:LEAVE EMPTY

我也尝试了这个正则表达式,但它删除了我sau旁边的单词:

寻找:</a>([\s\S]*?)\w+

替换为:LEAVE EMPTY

regex notepad++
  • 2 个回答
  • 31 Views
Martin Hope
Just Me
Asked: 2022-04-03 11:30:26 +0800 CST

正则表达式:选择/查找所有仅包含 4 个单词的 html 标签

  • 6

我有这 2 个 html 标签。我想找到所有只包含 4 个单词的 html 标签(在我的例子中只有第一行)

<p class="mb-40px">My name is prince</p>

<p class="mb-40px">Soul Travel is a spiritual practice that enables you to explore</p>

我试试这个,但不太好:

寻找:(<p class="mb-40px">)(.*?)(?:\W*+\w++){1,4}(.*?)</p>

regex notepad++
  • 2 个回答
  • 279 Views
Martin Hope
Just Me
Asked: 2022-04-03 06:11:13 +0800 CST

正则表达式:将标题 html 标记中所有具有大写字母的单词更改为小写(第一个字母除外)

  • 4

我想使用正则表达式更改为带有大写字母的小写单词

<title>THE CHILDREN are at home.</title>

成为

<title>The children are at home.</title>

所以,我制作了一个 Python 脚本来完成这项工作:

page_title = 'THE CHILDREN are at home.'
title_words = page_title.split(' ')

new_title_words = list()
for w in title_words:
    if w.isupper():
        new_title_words.append(w.lower().capitalize())
    else:
        new_title_words.append(w)

page_title = " ".join(new_title_words)
print(page_title)

但我想为 notepad++ 使用正则表达式公式,而不是 Python。谁能帮我?

regex notepad++
  • 1 个回答
  • 1710 Views
Martin Hope
Just Me
Asked: 2022-03-26 13:06:57 +0800 CST

正则表达式:查找单词中间的字母(变音符号)î,而不是单词开头或结尾的字母î

  • 5

我必须找到î单词中间的字母(变音符号),而不是单词î开头或结尾的字母。

例如:

1.stăpînii

2.înstăpanit

3.coborî

4.înfornît

因此,正则表达式必须î仅从第一个单词中找到该字母:stăpînii。

2 和 3 单词î的开头或结尾都有字母。所以那些必须从发现中忽略。

第 4 种情况很棘手。它以开头,中间î也有一个î。因此,只有第二个î必须通过正则表达式找到。

FINAL:正则表达式必须î从第一个单词中找到字母,还必须从最后一个单词中stăpînii找到第二个字母îînfornît

regex notepad++
  • 3 个回答
  • 176 Views
Martin Hope
Just Me
Asked: 2022-03-26 11:49:01 +0800 CST

正则表达式:选择所有不以字母“p”开头的单词

  • 6

我必须使用正则表达式来选择所有不以字母“p”开头的单词。例如:

book, laptop, promise

所以,正则表达式只能选择book, laptop

我的公式不起作用,不知道为什么:

查找:\b(?!p)\w+\b 或 \b(?!p){1}\w+\b 或 \b(?![p])\w+\b

我的公式还选择了一些单个字母,而不仅仅是单词\w+

regex notepad++
  • 2 个回答
  • 1114 Views
Martin Hope
Just Me
Asked: 2022-03-18 13:07:02 +0800 CST

正则表达式:查找包含运算符但不包含其他运算符的 html 标记

  • 5
1. <p class="mb-40px">My nick name is Prince and <a href="https://mywebsite.com/bla.html" class="color-gege" target="_new">my real name</a> is beyond magic.</p>
    
2. <p class="mb-40px">I love my home s< because I stay with my lovely cat.</p>

3. <p class="mb-40px">Because of this book t< I cannot sleep well.</p>

我只想找到在 html 标记中包含operator <<p class="mb-40px"> </p>的行,除了那些包含

在我上面的示例中,输出应该是第 2 行(具有 s<)和第 3 行(具有t<)

所以,我使用一个旧的通用公式:(REGION-START)+(.)+\K(FIND REGEX)(?s:(?=.*(REGION-FINAL)))

在我的情况下查找:(<p class="mb-40px">)+(.)+\K(\w<)(?s:(?=.*(</p>)))

问题是我的正则表达式也e</a>从第一行找到。我不想找到标签</a>

regex notepad++
  • 2 个回答
  • 213 Views
Martin Hope
Just Me
Asked: 2022-03-10 01:33:00 +0800 CST

正则表达式:查找仅突出显示一个单词的链接

  • 5

我有这两个链接突出一个单词game,第二个是单词,acapulco heat

  1. <a href="https://mywebsite.com/page-one.html" class="color-bebe" target="_new">game</a>

  2. <a href="https://mywebsite.com/page-one.html" class="color-bebe" target="_new">acapulco heat</a>

我想使用正则表达式来查找仅突出显示一个单词的链接,例如在 1 行中。

输出应该是:

<a href="https://mywebsite.com/page-one.html" class="color-bebe" target="_new">game</a>

或简单:

game

regex notepad++
  • 2 个回答
  • 198 Views
Martin Hope
Just Me
Asked: 2022-02-28 10:44:25 +0800 CST

正则表达式:如何从 html 标签中删除空格或换行符?

  • 5

我有这种 html 标签,它在某个单词后的某个时间点被空格打断masuri:

<p class="mb-40px">Aceasta este o melodie alcatuita din patru masuri:
reluata apoi de catre instrumentul solist cu un cintec popular.</p>

输出:

<p class="mb-40px">Aceasta este o melodie alcatuita din patru masuri: reluata apoi de catre instrumentul solist cu un cintec popular.</p>

我想替换该特定标签中的换行符<p class="mb-40px"></p>

我发现@Toto 制作的旧正则表达式看起来不错,但没有进行替换以获得输出:

寻找:(?:<p class="mb-40px">|\G)(?:(?!</p>).)*?\s\K\s+

替换为:(leave empty)

regex notepad++
  • 2 个回答
  • 1535 Views
Martin Hope
Just Me
Asked: 2022-02-27 10:06:00 +0800 CST

正则表达式:仅选择后跟以小写字母开头的单词的点

  • 5

我想使用正则表达式来仅选择后跟以小写字母开头的单词的点。

例子:

1:我的猫在这里。我不知道狗在哪里。

2:我的猫在这里。我不知道狗在哪里。

输出应该是 1 行。并且正则表达式必须找到. a(来自. and I don't know)

我的正则表达式似乎几乎不错,但也选择了第二行,. A(这不必选择)

寻找:\. [a-z]

regex notepad++
  • 1 个回答
  • 21 Views
Martin Hope
Just Me
Asked: 2022-02-19 09:47:23 +0800 CST

如何使用正则表达式将超链接的导入内容添加到该超链接的标题?

  • 6

我有这个链接(HTML 链接 - 超链接)

<p class="mb-40px"><a href="my-name-is-prince.html"></a></p>

我想从链接中导入内容,复制它,然后再把它放在前面</a>?

输出应该是:

<p class="mb-40px"><a href="my-name-is-prince.html">My Name Is Prince</a></p>

我的正则表达式几乎很好,可以将链接从一个地方复制到另一个地方,但我不知道如何下车连接线

寻找:(<p class="mb-40px"><a href=")(.*?)(.html">)(</a>)

替换为:\1\2\3\u\2\4

regex notepad++
  • 2 个回答
  • 43 Views
Martin Hope
Just Me
Asked: 2022-02-02 11:06:14 +0800 CST

正则表达式:将起始单词的第一个小写字母转换为大写字母(.dot 之后)

  • 5

我有这种情况:

My sister is home. she loves music. And I don't have a stereo.

我想在我的所有行中找到点之后的所有单词并以小写字母开头,然后在所有行的所有类似情况下将该小写字母转换为大写字母。

输出:

My sister is home. She loves music. And I don't have a stereo.

regex notepad++
  • 1 个回答
  • 1308 Views
Martin Hope
Just Me
Asked: 2022-01-31 09:40:00 +0800 CST

正则表达式:删除 html 标签 <p> 和 </p> 之间的所有空行

  • 4

<p>Fie pentru a păstra prospețimea anumitor culori (ex. odinioară, ullraniarinul. Text.

Altădată se folosea usturoiul, deoarece conține și un ulei esențial, rare aderă prin dizolvarea la suprafață a grăsimilor și lotodală un mucegaiul cleios, sensibil la apă.</p>

输出必须是:

<p>Fie pentru a păstra prospețimea anumitor culori (ex. odinioară, ullraniarinul. Text. Altădată se folosea usturoiul, deoarece conține și un ulei esențial, rare aderă prin dizolvarea la suprafață a grăsimilor și lotodală un mucegaiul cleios, sensibil la apă.</p>

我的正则表达式在记事本++中似乎很好,但我需要一个更短的正则表达式(因为这个不适用于 Python)

寻找:(<p>)(.*?$)(\s+.*?)

替换为:\1\2

regex
  • 2 个回答
  • 51 Views

Sidebar

Stats

  • 问题 199037
  • 回答 263511
  • 最佳答案 131755
  • 用户 66345
  • 热门
  • 回答
  • Marko Smith

    如何减少“vmmem”进程的消耗?

    • 11 个回答
  • Marko Smith

    从 Microsoft Stream 下载视频

    • 4 个回答
  • Marko Smith

    Google Chrome DevTools 无法解析 SourceMap:chrome-extension

    • 6 个回答
  • Marko Smith

    Windows 照片查看器因为内存不足而无法运行?

    • 5 个回答
  • Marko Smith

    支持结束后如何激活 WindowsXP?

    • 6 个回答
  • Marko Smith

    远程桌面间歇性冻结

    • 7 个回答
  • Marko Smith

    子网掩码 /32 是什么意思?

    • 6 个回答
  • Marko Smith

    鼠标指针在 Windows 中按下的箭头键上移动?

    • 1 个回答
  • Marko Smith

    VirtualBox 无法以 VERR_NEM_VM_CREATE_FAILED 启动

    • 8 个回答
  • Marko Smith

    应用程序不会出现在 MacBook 的摄像头和麦克风隐私设置中

    • 5 个回答
  • Martin Hope
    Saaru Lindestøkke 为什么使用 Python 的 tar 库时 tar.xz 文件比 macOS tar 小 15 倍? 2021-03-14 09:37:48 +0800 CST
  • Martin Hope
    CiaranWelsh 如何减少“vmmem”进程的消耗? 2020-06-10 02:06:58 +0800 CST
  • Martin Hope
    Jim Windows 10 搜索未加载,显示空白窗口 2020-02-06 03:28:26 +0800 CST
  • Martin Hope
    v15 为什么通过电缆(同轴电缆)的千兆位/秒 Internet 连接不能像光纤一样提供对称速度? 2020-01-25 08:53:31 +0800 CST
  • Martin Hope
    andre_ss6 远程桌面间歇性冻结 2019-09-11 12:56:40 +0800 CST
  • Martin Hope
    Riley Carney 为什么在 URL 后面加一个点会删除登录信息? 2019-08-06 10:59:24 +0800 CST
  • Martin Hope
    zdimension 鼠标指针在 Windows 中按下的箭头键上移动? 2019-08-04 06:39:57 +0800 CST
  • Martin Hope
    jonsca 我所有的 Firefox 附加组件突然被禁用了,我该如何重新启用它们? 2019-05-04 17:58:52 +0800 CST
  • Martin Hope
    MCK 是否可以使用文本创建二维码? 2019-04-02 06:32:14 +0800 CST
  • Martin Hope
    SoniEx2 更改 git init 默认分支名称 2019-04-01 06:16:56 +0800 CST

热门标签

windows-10 linux windows microsoft-excel networking ubuntu worksheet-function bash command-line hard-drive

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve