0

コンテンツに「(SCIAN」という単語がある:li ノードを選択しようとしています。

<li>...</li>
<li class="">
                Conception de systèmes informatiques et services connexes (SCIAN 541510)
            </li>

<li>...</li>

私はこれを試して失敗しました:

(html/select
    fetched
    [[:li (html/has [(html/re-pred #"\w*SCIAN\b")])]])))

ご協力ありがとうございました!

注意: 私は成功せずにこれらのパターンを使用しようとしました

4

2 に答える 2

1

フランス語のアクセントと組み合わせた正規表現が問題を引き起こしていると思います:

    (def s "è")
    (def r #"\w") 
    (re-matches r s)
    ;;; => nil
    (def s "e")
    (re-matches r s)
    ;;; => "e"
于 2013-09-04T04:42:38.897 に答える