note 94843 added to function.mb-regex-set-options
| From: | indeyets@php.net | Date: | Fri, 27 Nov 2009 22:58:18 +0000 |
| Subject: | note 94843 added to function.mb-regex-set-options | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-163353@lists.php.net to get a copy of this message | ||
It's a bit trickier, than patryk wrote:
There are parameters (you can specify several of these at the same time):
'i': ONIG_OPTION_IGNORECASE;
'x': ONIG_OPTION_EXTEND;
'm': ONIG_OPTION_MULTILINE;
's': ONIG_OPTION_SINGLELINE;
'p': ONIG_OPTION_MULTILINE | ONIG_OPTION_SINGLELINE;
'l': ONIG_OPTION_FIND_LONGEST;
'n': ONIG_OPTION_FIND_NOT_EMPTY;
'e': eval() resulting code
And there are "modes" (if you specify several of these, the LAST one will be used):
'j': ONIG_SYNTAX_JAVA;
'u': ONIG_SYNTAX_GNU_REGEX;
'g': ONIG_SYNTAX_GREP;
'c': ONIG_SYNTAX_EMACS;
'r': ONIG_SYNTAX_RUBY;
'z': ONIG_SYNTAX_PERL;
'b': ONIG_SYNTAX_POSIX_BASIC;
'd': ONIG_SYNTAX_POSIX_EXTENDED;
You can find descriptions of these constants here: http://www.geocities.jp/kosako3/oniguruma/doc/API.txt
----
Server IP: 92.48.119.85
Probable Submitter: 93.185.190.227
----
Manual Page -- http://www.php.net/manual/en/function.mb-regex-set-options.php
Edit -- https://master.php.net/note/edit/94843
Del: integrated -- https://master.php.net/note/delete/94843/integrated
Del: useless -- https://master.php.net/note/delete/94843/useless
Del: bad code -- https://master.php.net/note/delete/94843/bad+code
Del: spam -- https://master.php.net/note/delete/94843/spam
Del: non-english -- https://master.php.net/note/delete/94843/non-english
Del: in docs -- https://master.php.net/note/delete/94843/in+docs
Del: other reasons-- https://master.php.net/note/delete/94843
Reject -- https://master.php.net/note/reject/94843
Search -- https://master.php.net/manage/user-notes.php