So while it certainly can be done (this posting serves as an existence proof of this incontrovertible fact), that doesn’t mean it should be. ![]() That silliness is parroted a lot around here, but don’t you believe them. It is true that most people underestimate the difficulty of parsing HTML with regular expressions and therefore do so poorly.īut this is not some fundamental flaw related to computational theory. Oh Yes You Can Use Regexes to Parse HTML!įor the task you are attempting, regexes are perfectly fine! P.S.: By the way I am using the Adobe Air based RegEx Desktop Tool for testing regular expressions. How can I change my pattern so it will match regardless of the positions of the attributes in the tag? If the type attribute comes last, the match will fail because in my pattern it’s at the start. I am trying to match type “hidden” fields using this pattern: //īut I am not sure that the type, name, and value attributes will always appear in the same order. Regular expression pattern not matching anywhere in string
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |