Hello monks, I'm scrambling around too much, and not thinking about what I'm doing; I'm a newbie to coding, and still finding my feet.
1. My aim (for today) is to read-in the HTML file on a filehandle, che +ck for the presence of the word and letter spacing attributes and pri +nt out a 'success, patterns are in the document' message.
2. Next is to remove the attributes with 'substitute', write the coore +ctions to the HTML source file, and open the browser to see if the it +s worked.
3. I'm going to remove the attributes from the styles (in-line styles + at the moment), check the source file for the absence of them, and r +e-include them within the tags.
I want to see how I can change the HTML using regexps, from a dyslexic/poor-vision user's point-of-view. Word and letter spacing, Linearising hyperlinks and removing unnecessary emphasis of text (confusing for dyslexics - I should know, I'm one of them!) are some of the requirements I've identified. I've managed to extract image tags and re-write the changes, so I'm heading in the right direction. Question: I've not encountered the 'qr' modifiers before; what are they, and what do they do?
Thanks for your patience, brethren...

In reply to Re: Re: Regexp conundrum by Tricky
in thread Regexp conundrum by Tricky

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.