On Tue, 4 Jun 2019, Marcio Vogel Merlone dos Santos wrote:

Hi all,

Trying to match a message using uri_detail with no luck. On body I have something like this:

<a href="foo.bar">Something &rarr;</a>

That "something" is changed on a daily basis, so I am trying to match the &rarr; which is common to all variations, and failing miserably. I have tried the obvious and some (desperate) variations:

uri_detail  A1_URI_FAKE_LINK    text =~ /&rarr;/i

uri_detail  A1_URI_FAKE_LINK    text =~ /.rarr;/i

uri_detail  A1_URI_FAKE_LINK    text =~ /.rarr./i

uri_detail  A1_URI_FAKE_LINK    text =~ /rarr/i

What have I missed? Thanks for any enlightenment, RTFM.

This may help to figure it out in debug mode:

   uri_detail  __ALL_URI_DTL_TXT    text =~ /.*/
   tflags      __ALL_URI_DTL_TXT    multiple

You *should* be able to see exactly what is there - the HTML token or a UTF-8 byte sequence.

--
 John Hardin KA7OHZ                    http://www.impsec.org/~jhardin/
 jhar...@impsec.org    FALaholic #11174     pgpk -a jhar...@impsec.org
 key: 0xB8732E79 -- 2D8C 34F4 6411 F507 136C  AF76 D822 E6E6 B873 2E79
-----------------------------------------------------------------------
 2 days until the 75th anniversary of D-Day

Reply via email to