pcre

pcre expression for irc nicknames?

Hey guys, I'm having a few issues with using PCRE to make a irc nickname format correctly. I'm not good with PCRE, and I'd love some suggestions from those of you who do use PCRE / regex. :) I'm currently using this expression: /^([^A-Za-z]{1})([^A-Za-z0-9-.]{0,32})$/ I'm using it as such: preg_replace($regex, $replaceWith, $content) I...

Capture recurring regex patterns in PHP

I have a pattern ab 23 cde 25 ... and so on Can I capture the above pattern like array( [patterns] => array( [0] => array( [payer] => 'ab' [amt] => 23 ) [1] => array( [payer] => 'cde' [amt] => 25 ) ) ) Is this possible? ...

Regex PCRE: validate string that does not contains 3 or more consecutive digits

I've searched the questions but can't find an answer. I need a pattern that, used with php preg_match function, only match strings that does not contains 3 or more consecutive digits, e.g.: rrfefzef => TRUE rrfef12ze1 => TRUE rrfef1zef1 => TRUE rrf12efzef231 => FALSE rrf2341efzef231 => FALSE So far, I have wrote the...

Help with Linker error LNK2038 !

I am trying to port a small app of mine from Win XP and VS 2005 to Win 7 and VS 2010. The app compiles and runs smoothly in Debug mode, however in Release mode I get the following error : pcrecpp.lib(pcrecpp.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in LoginDlg.obj The wor...