Skip to content

Conversation

@vologin-dmitry
Copy link
Owner

No description provided.

Copy link

@yurii-litvinov yurii-litvinov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

В целом всё так, зачтена

open System.Text.RegularExpressions
open System

let expr = @"href\s*=\s*(?:[""'](?<1>[^""']*)[""']|(?<1>\S+))"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Очень уж разрешающий регэксп. Если просто где-то на странице найдётся, например, href='sdfds", оно подумает, что это ссылка. Правильнее было бы искать начало тэга <a

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants