Home
last modified time | relevance | path

Searched refs:preg_match (Results 1 – 25 of 85) sorted by relevance

1234

/webtrees/app/Services/
H A DGedcomImportService.php52 use function preg_match; alias
157 …if (preg_match('/(.*), (\d\d)(\d\d)(\d\d)([NS])(\d\d\d)(\d\d)(\d\d)([EW])$/', $data, $match) === 1…
249 …if (preg_match('/^0 @(' . Gedcom::REGEX_XREF . ')@ (' . Gedcom::REGEX_TAG . ')/', $gedrec, $match)…
268 if (preg_match('/^0 ' . $record_type . '\b/', $gedrec) === 1) {
313 if (preg_match('/\n1 RIN (.+)/', $gedrec, $match)) {
338 if (preg_match('/\n1 HUSB @(' . Gedcom::REGEX_XREF . ')@/', $gedrec, $match)) {
343 if (preg_match('/\n1 WIFE @(' . Gedcom::REGEX_XREF . ')@/', $gedrec, $match)) {
349 if (preg_match('/\n1 NCHI (\d+)/', $gedrec, $match)) {
368 if (preg_match('/\n1 TITL (.+)/', $gedrec, $match)) {
370 } elseif (preg_match('/\n1 ABBR (.+)/', $gedrec, $match)) {
[all …]
H A DRelationshipService.php40 use function preg_match; alias
268 preg_match('/\n1 (HUSB|WIFE|CHIL) @' . $prev->xref() . '@/', $family->gedcom(), $match);
271 preg_match('/\n1 (HUSB|WIFE|CHIL) @' . $next->xref() . '@/', $family->gedcom(), $match);
335 if (preg_match('/(fat|hus|son|bro)$/', $path) === 1) {
337 } elseif (preg_match('/(mot|wif|dau|sis)$/', $path) === 1) {
1200 if (preg_match('/^(mot|fat|par)fatbro(son|dau|chi)dau$/', $path) === 1) {
1204 if (preg_match('/^(mot|fat|par)fatbro(son|dau|chi)son$/', $path) === 1) {
1208 if (preg_match('/^(mot|fat|par)fatbro(son|dau|chi)chi$/', $path) === 1) {
1212 if (preg_match('/^(mot|fat|par)fatsis(son|dau|chi)dau$/', $path) === 1) {
1216 if (preg_match('/^(mot|fat|par)fatsis(son|dau|chi)son$/', $path) === 1) {
[all …]
/webtrees/app/Factories/
H A DCalendarDateFactory.php49 …if (preg_match('/^(@#D(?:GREGORIAN|JULIAN|HEBREW|HIJRI|JALALI|FRENCH R|ROMAN)+@) ?(.*)/', $date, $…
56 …if (preg_match('/^(\d?\d?) ?(JAN|FEB|MAR|APR|MAY|JUN|JUL|AUG|SEP|OCT|NOV|DEC|TSH|CSH|KSL|TVT|SHV|A…
60 } elseif (preg_match('/^(\d{1,4}(?: B\.C\.)?|\d\d\d\d\/\d\d)$/', $date, $match)) {
71 if (preg_match('/(\d{3,4})/', $date, $match)) {
75 …if (preg_match('/(JAN|FEB|MAR|APR|MAY|JUN|JUL|AUG|SEP|OCT|NOV|DEC|TSH|CSH|KSL|TVT|SHV|ADR|ADS|NSN|…
78 if (preg_match('/\b(\d\d?)\b/', $date, $match)) {
85 if (preg_match('/^(TSH|CSH|KSL|TVT|SHV|ADR|ADS|NSN|IYR|SVN|TMZ|AAV|ELL)$/', $m)) {
87 …} elseif (preg_match('/^(VEND|BRUM|FRIM|NIVO|PLUV|VENT|GERM|FLOR|PRAI|MESS|THER|FRUC|COMP)$/', $m)…
89 …} elseif (preg_match('/^(MUHAR|SAFAR|RABI[AT]|JUMA[AT]|RAJAB|SHAAB|RAMAD|SHAWW|DHUAQ|DHUAH)$/', $m…
91 …} elseif (preg_match('/^(FARVA|ORDIB|KHORD|TIR|MORDA|SHAHR|MEHR|ABAN|AZAR|DEY|BAHMA|ESFAN)$/', $m)…
[all …]
H A DEncodingFactory.php42 use function preg_match; alias
66 if (preg_match($regex, $header) === 1) {
142 if (preg_match('/' . $regex . '/i', $header) === 1) {
147 if (preg_match('/1 CHAR (.+)/', $header, $match) === 1) {
/webtrees/app/Report/
H A DReportParserGenerate.php65 use function preg_match; alias
304 if (preg_match("/^\\$(\w+)$/", $value, $match)) {
705 if (preg_match('/\$(.+)/', $tag, $match)) {
713 if (preg_match('/@(.+)/', $tag, $match)) {
715 if (preg_match("/\d $match[1] @([^@]+)@/", $tgedrec, $gmatch)) {
734 if (preg_match("/(\d+) (_?[A-Z0-9]+) (.*)/", $this->gedrec, $match)) {
956 if (preg_match('/0 @(.+)@/', $this->gedrec, $match)) {
960 if (preg_match('/\$(.+)/', $attrs['id'], $match)) {
965 if (preg_match('/@(.+)/', $attrs['id'], $match)) {
967 if (preg_match("/\d $match[1] @([^@]+)@/", $this->gedrec, $gmatch)) {
[all …]
H A DReportParserSetup.php25 use function preg_match; alias
58 if (preg_match('/^I18N::number\((.+)\)$/', $attrs['var'], $match)) {
60 } elseif (preg_match('/^I18N::translate\(\'(.+)\'\)$/', $attrs['var'], $match)) {
62 …} elseif (preg_match('/^I18N::translateContext\(\'(.+)\', *\'(.+)\'\)$/', $attrs['var'], $match)) {
128 if (preg_match('/NOW([+\-]\d+)/', $attrs['default'], $match) > 0) {
H A DReportPdfCell.php24 use function preg_match; alias
62 if (preg_match('/#?(..)(..)(..)/', $this->bgcolor, $match)) {
76 if (preg_match('/#?(..)(..)(..)/', $this->bocolor, $match)) {
84 if (preg_match('/#?(..)(..)(..)/', $this->tcolor, $match)) {
/webtrees/app/
H A DFact.php34 use function preg_match; alias
186 if (preg_match('/^1 (' . Gedcom::REGEX_TAG . ')/', $gedcom, $match)) {
204 if (preg_match('/^1 ' . $this->tag . ' ?(.*(?:\n2 CONT ?.*)*)/', $this->gedcom, $match)) {
220 if (!preg_match('/^@(' . Gedcom::REGEX_XREF . ')@$/', $this->value(), $match)) {
270 if (preg_match('/\n2 ' . $tag . '\b ?(.*(?:(?:\n3 CONT ?.*)*)*)/', $this->gedcom, $match)) {
284 if (preg_match('/\n4 LATI (.+)/', $this->gedcom, $match)) {
298 if (preg_match('/\n4 LONG (.+)/', $this->gedcom, $match)) {
448 …if (str_ends_with($this->tag(), ':NOTE') && preg_match('/^@' . Gedcom::REGEX_XREF . '@$/', $this->…
H A DValidator.php36 use function preg_match; alias
63 if (is_string($key) && preg_match('//u', $key) !== 1) {
66 if (is_string($value) && preg_match('//u', $value) !== 1) {
208 if ($value !== null && preg_match('/^' . Gedcom::REGEX_TAG . '$/', $value) === 1) {
224 if (is_string($value) && preg_match('/^' . Gedcom::REGEX_XREF . '$/', $value) === 1) {
230 if (!is_string($v) || preg_match('/^' . Gedcom::REGEX_XREF . '$/', $v) !== 1) {
H A DIndividual.php32 use function preg_match; alias
226 …if (preg_match('/\n1 (?:' . implode('|', Gedcom::DEATH_EVENTS) . ')(?: Y|(?:\n[2-9].+)*\n2 (DATE|P…
240 if (preg_match('/\n1 BIRT(?:\n[2-9].+)*\n2 DATE /', $this->gedcom)) {
652 if (preg_match('/\n1 SEX ([MFX])/', $this->gedcom . $this->pending, $match)) {
711 if (preg_match('/\n1 NCHI (\d+)(?:\n|$)/', $this->gedcom(), $match)) {
943 … $GIVN = preg_match('/\n' . $sublevel . ' GIVN (.+)/', $gedcom, $match) === 1 ? $match[1] : '';
944 … $SURN = preg_match('/\n' . $sublevel . ' SURN (.+)/', $gedcom, $match) === 1 ? $match[1] : '';
970 if (preg_match('/\/.*\//', $full, $match)) {
H A DMediaFile.php81 if (preg_match('/^\d FILE (.+)/m', $gedcom, $match)) {
85 if (preg_match('/^\d FORM (.+)/m', $gedcom, $match)) {
89 if (preg_match('/^\d TYPE (.+)/m', $gedcom, $match)) {
93 if (preg_match('/^\d TITL (.+)/m', $gedcom, $match)) {
H A DGedcomRecord.php43 use function preg_match; alias
166 preg_match('/^0 @[^@]*@ (\w+)/', $this->gedcom(), $match);
715 …if (preg_match('/\n3 TIME (([01]\d|2[0-3]):([0-5]\d):([0-5]\d))/', $chan->gedcom(), $match) === 1)…
719 … if (preg_match('/\n3 TIME (([01]\d|2[0-3]):([0-5]\d))/', $chan->gedcom(), $match) === 1) {
800 if ($gedcom !== '' && !preg_match('/^1 ' . Gedcom::REGEX_TAG . '/', $gedcom)) {
880 if (preg_match('/\n1 CHAN(\n[2-9].*)*/', $gedcom, $match)) {
1113 if (preg_match('/\n1 RESN (.+)/', $this->gedcom(), $match)) {
/webtrees/resources/views/
H A Dfact-date.phtml27 if (preg_match('/\n2 AGE (.+)/', $factrec, $match) === 1) {
33 if (preg_match('/\n2 HUSB\n3 AGE (.+)/', $factrec, $match) === 1) {
39 if (preg_match('/\n2 WIFE\n3 AGE (.+)/', $factrec, $match) === 1) {
48 if (preg_match('/\n2 DATE (.+)/', $factrec, $match) === 1) {
52 if ($time && preg_match('/\n3 TIME (.+)/', $factrec, $match) === 1) {
H A Dfact-place.phtml23 <?php if (preg_match('/\n(2 PLAC.*(?:\n[3-9].*)*)/', $fact->gedcom(), $match) === 1) : ?>
48 <?php if (preg_match('/2 TEMP (.+)/', $fact->gedcom(), $match)) : ?>
52 <?php if (preg_match('/2 STAT (.+)/', $fact->gedcom(), $match)) : ?>
55 <?php if (preg_match('/3 DATE (.+)/', $fact->gedcom(), $match)) : ?>
/webtrees/app/Module/
H A DFixDuplicateLinks.php28 use function preg_match; alias
190 preg_match('/(\n1.*@.+@.*(?:\n[2-9].*)*)(?:\n1.*(?:\n[2-9].*)*)*\1/', $gedcom) ||
191 preg_match('/(\n2.*@.+@.*(?:\n[3-9].*)*)(?:\n2.*(?:\n[3-9].*)*)*\1/', $gedcom) ||
192 preg_match('/(\n3.*@.+@.*(?:\n[4-9].*)*)(?:\n3.*(?:\n[4-9].*)*)*\1/', $gedcom);
H A DFixNameSlashesAndSpaces.php28 use function preg_match; alias
94preg_match('/^(?:1 NAME|2 (?:FONE|ROMN|_MARNM|_AKA|_HEB)) [^\/\n]*\/[^\/\n]*$/m', $gedcom) ||
95 preg_match('/^(?:1 NAME|2 (?:FONE|ROMN|_MARNM|_AKA|_HEB)) [^\/\n]*[^\/ ]\//m', $gedcom);
H A DFixCemeteryTag.php30 use function preg_match; alias
120 … ->filter(static fn (Fact $fact): bool => preg_match('/\n[23] CEME/', $fact->gedcom()) === 1)
173 if (preg_match('/\n\d CEME ?(.+)(?:\n\d PLOT ?(.+))?/', $gedcom, $match)) {
H A DFixNameTags.php33 use function preg_match; alias
122 … return preg_match('/\n1 NAME.*(?:\n[2-9] .*)*\n2 (' . $tags . ')/', $record->gedcom()) === 1;
183 while (preg_match('/\n2 (' . $tags . ') (.+)((?:\n[3-9].*)*)/', $gedcom, $match)) {
/webtrees/app/Elements/
H A DNoteStructure.php29 use function preg_match; alias
55 if (preg_match('/^@' . Gedcom::REGEX_XREF . '@$/', $value)) {
110 if (preg_match('/^@(' . Gedcom::REGEX_XREF . ')@$/', $value, $match) === 1) {
183 if (preg_match('/^@(' . Gedcom::REGEX_XREF . ')@$/', $value, $match) === 1) {
/webtrees/app/SurnameTradition/
H A DIcelandicSurnameTradition.php76 if (preg_match(self::REGEX_GIVN, $this->extractName($father), $match) === 1) {
109 …if ($sex === 'M' && preg_match('~(?<GIVN>[^ /]+)(:?sson)$~', $this->extractName($child), $match) =…
115 …if ($sex === 'F' && preg_match('~(?<GIVN>[^ /]+)(:?sdottir)$~', $this->extractName($child), $match…
H A DSpanishSurnameTradition.php77 if (preg_match(self::REGEX_SURNS, $this->extractName($father), $match_father) === 1) {
83 if (preg_match(self::REGEX_SURNS, $this->extractName($mother), $match_mother) === 1) {
107 if (preg_match(self::REGEX_SURNS, $this->extractName($child), $match) === 1) {
H A DPortugueseSurnameTradition.php77 if (preg_match(self::REGEX_SURNS, $this->extractName($father), $match_father) === 1) {
83 if (preg_match(self::REGEX_SURNS, $this->extractName($mother), $match_mother) === 1) {
107 if (preg_match(self::REGEX_SURNS, $this->extractName($child), $match) === 1) {
H A DLithuanianSurnameTradition.php92 if (preg_match(self::REGEX_SURN, $this->extractName($father), $match) === 1) {
121 … if ($sex === 'M' && preg_match(self::REGEX_SURN, $this->extractName($child), $match) === 1) {
145 … if ($sex === 'F' && preg_match(self::REGEX_SURN, $this->extractName($spouse), $match) === 1) {
H A DPolishSurnameTradition.php82 if (preg_match(self::REGEX_SURN, $this->extractName($father), $match) === 1) {
107 … if ($sex === 'M' && preg_match(self::REGEX_SURN, $this->extractName($child), $match) === 1) {
129 … if ($sex === 'F' && preg_match(self::REGEX_SURN, $this->extractName($spouse), $match) === 1) {
/webtrees/app/Http/RequestHandlers/
H A DUploadMediaAction.php38 use function preg_match; alias
100 if (preg_match('/([:])/', $filename, $match)) {
106 … if (preg_match('/(\.(php|pl|cgi|bash|sh|bat|exe|com|htm|html|shtml))$/i', $filename, $match)) {

1234