On Thu, 1 Oct 2009, Benny Pedersen wrote:

On tor 01 okt 2009 18:26:01 CEST, John Hardin wrote
m;^https?://[^/?]+\.cn\b;

replace ; with / no ?

m/\bhttps?://[^/?]+\.cn\b/i

No. The point to m; is so that you can embed / in the RE without escaping them. You are changing the RE delimiters.

m{...} is fine _if_ you don't use {m,n} syntax, in which case it becomes confusing.

--
 John Hardin KA7OHZ                    http://www.impsec.org/~jhardin/
 [email protected]    FALaholic #11174     pgpk -a [email protected]
 key: 0xB8732E79 -- 2D8C 34F4 6411 F507 136C  AF76 D822 E6E6 B873 2E79
-----------------------------------------------------------------------
  If "healthcare is a Right" means that the government is obligated
  to provide the people with hospitals, physicians, treatments and
  medications at low or no cost, then the right to free speech means
  the government is obligated to provide the people with printing
  presses and public address systems, the right to freedom of
  religion means the government is obligated to build churches for the
  people, and the right to keep and bear arms means the government is
  obligated to provide the people with guns, all at low or no cost.
-----------------------------------------------------------------------
 Approximately 9052800 firearms legally purchased in the U.S. this year

Reply via email to