## page was renamed from 正規表現
#format text_markdown
正規表現
=======
作るのに苦労した正規表現をメモ。
の中から特定の属性だけを抜き出す
--------------------------------------------------------------
後で詳しく書く
これは... 正規表現でやるのはよくない。と思う。
python
```python
ptn = r'])))\s+[^\s=]+=(?:(?:"[^"]*")|(?:[^\s>]*)))*)(?:(\s+class=)(?:(?:"([^"]*)")|([^\s>]*)))?(.*?)>(.*)'
```