On Mon, 22 Aug 2011, Ned Slider wrote:

uri     __REALLY_HAS_ANY_URI    m{https?://.}

and if we want to test for email addresses:

uri     __HAS_ANY_URI_EMAIL             /@/

and make __HAS_ANY_URI (and __DOS_HAS_ANY_URI) a meta of the above two rules.

Given they're the vast majority, but https? and mailto are not the only protocols supported in URIs. Such a meta would ignore them.

I could see some subrules that try to distinguish between different URI protocols. What are you trying to accomplish?

--
 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
-----------------------------------------------------------------------
  Judicial Activism (n): interpreting the Constitution to grant the
  government powers that are popularly felt to be "needed" but that
  are not explicitly provided for therein (common definition);
  interpreting the Constitution as it is written (Brady definition)
-----------------------------------------------------------------------
 2 days until the 1932nd anniversary of the destruction of Pompeii

Reply via email to