相关疑难解决方法(0)

Python正则表达式

str1 = abdk3<h1>The content we need</h1>aaaaabbb<h2>The content we need2</h2>
Run Code Online (Sandbox Code Playgroud)

我们需要h1标签和h2标签内的内容.

最好的方法是什么?谢谢

谢谢您的帮助!

python regex

1
推荐指数
1
解决办法
224
查看次数

如何获取HTML标签?

说我有这样的文本文件:

<html><head>Headline<html><head>more words
</script>even more words</script>
<html><head>Headline<html><head>more words
</script>even more words</script>
Run Code Online (Sandbox Code Playgroud)

我如何将标签放入如下列表中:

<html>
<head>
<html>
<head>
</script>
</script>
<html>
<head>
<html>
<head>
</script>
</script>
Run Code Online (Sandbox Code Playgroud)

python

0
推荐指数
1
解决办法
6107
查看次数

标签 统计

python ×2

regex ×1