Mercurial > pidgin-twitter
comparison pidgin-twitter.c @ 24:8a9bc21cd978
more improvement on regexp
author | Yoshiki Yazawa <yaz@cc.rim.or.jp> |
---|---|
date | Mon, 05 May 2008 19:54:04 +0900 |
parents | 06d9aae275c5 |
children | 1b784171b08a |
comparison
equal
deleted
inserted
replaced
23:06d9aae275c5 | 24:8a9bc21cd978 |
---|---|
411 regp[COMMAND] = g_regex_new( | 411 regp[COMMAND] = g_regex_new( |
412 "^(?:\\s*)([dDfFgGlLmMnNtTwW]{1}\\s+[A-Za-z0-9_]+\\Z)", | 412 "^(?:\\s*)([dDfFgGlLmMnNtTwW]{1}\\s+[A-Za-z0-9_]+\\Z)", |
413 G_REGEX_RAW, 0, NULL); | 413 G_REGEX_RAW, 0, NULL); |
414 | 414 |
415 regp[PSEUDO] = g_regex_new( | 415 regp[PSEUDO] = g_regex_new( |
416 "^(?:\\s*[\"#$%&'()*+,\\-./:;<=>?\\[\\\\\\]_`{|}~]*[^\\s\\x21-\\x7E]*)([dDfFgGlLmMnNtTwW]{1})(?:\\Z|\\s+|[^\\x21-\\x7E]+\\Z)", | 416 // "^(?:\\s*[\"#$%&'()*+,\\-./:;<=>?\\[\\\\\\]_`{|}~]*[^\\s\\x21-\\x7E]*)([dDfFgGlLmMnNtTwW]{1})(?:\\Z|\\s+|[^\\x21-\\x7E]+\\Z)", |
417 "^\\s*(?:[\"#$%&'()*+,\\-./:;<=>?\\[\\\\\\]_`{|}~]|[^\\s\\x21-\\x7E])*([dDfFgGlLmMnNtTwW]{1})(?:\\Z|\\s+|[^\\x21-\\x7E]+\\Z)", | |
417 G_REGEX_RAW, 0, NULL); | 418 G_REGEX_RAW, 0, NULL); |
418 } | 419 } |
419 | 420 |
420 PURPLE_INIT_PLUGIN(pidgin_twitter, init_plugin, info) | 421 PURPLE_INIT_PLUGIN(pidgin_twitter, init_plugin, info) |