Question help with regex for birth
- HerzScheisse
- Topic Author
- Offline
- New Member
I've been searching for a while to solve this.... but somehow i cant get it to work...
does any of you know how to search for people with no "1 BIRT" entry in the gedcom data?
I was using the new modules from sevtor to eliminate these error and could solve a couple... but there are some more people, which i cant find via the "missing facts" report... so i tried to find them in the datafix -> search&replace...
webtrees 2.1.20 - modules: all vesta, faces, legal notice, privacy policy, fancy treeview, fancy research links
Linux Ubuntu | PHP 8.3.3 | MariaDB 10.5.23 | rewrite_urls="1"
My genealogy site: www.eisold.family
Please Log in or Create an account to join the conversation.
- fisharebest
- Offline
- Administrator
Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Please Log in or Create an account to join the conversation.
- HerzScheisse
- Topic Author
- Offline
- New Member
thats what i tried with finding from the net... but i forgot the "\n" but even with it like in your example it doesnt find anything...
webtrees 2.1.20 - modules: all vesta, faces, legal notice, privacy policy, fancy treeview, fancy research links
Linux Ubuntu | PHP 8.3.3 | MariaDB 10.5.23 | rewrite_urls="1"
My genealogy site: www.eisold.family
Please Log in or Create an account to join the conversation.
- fisharebest
- Offline
- Administrator
Try:
Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Please Log in or Create an account to join the conversation.
- HerzScheisse
- Topic Author
- Offline
- New Member
Yeah awesome... that works... cool now i can fix this entries
Thank you
webtrees 2.1.20 - modules: all vesta, faces, legal notice, privacy policy, fancy treeview, fancy research links
Linux Ubuntu | PHP 8.3.3 | MariaDB 10.5.23 | rewrite_urls="1"
My genealogy site: www.eisold.family
Please Log in or Create an account to join the conversation.
- drblam
- Offline
- Junior Member
- Posts: 187
Please Log in or Create an account to join the conversation.
- HerzScheisse
- Topic Author
- Offline
- New Member
i dont replace anthing there... just finding people and edit them in new browser tabs
webtrees 2.1.20 - modules: all vesta, faces, legal notice, privacy policy, fancy treeview, fancy research links
Linux Ubuntu | PHP 8.3.3 | MariaDB 10.5.23 | rewrite_urls="1"
My genealogy site: www.eisold.family
Please Log in or Create an account to join the conversation.
- drblam
- Offline
- Junior Member
- Posts: 187
Please Log in or Create an account to join the conversation.
- HerzScheisse
- Topic Author
- Offline
- New Member
webtrees 2.1.20 - modules: all vesta, faces, legal notice, privacy policy, fancy treeview, fancy research links
Linux Ubuntu | PHP 8.3.3 | MariaDB 10.5.23 | rewrite_urls="1"
My genealogy site: www.eisold.family
Please Log in or Create an account to join the conversation.
- drblam
- Offline
- Junior Member
- Posts: 187
Thanks! That gave me 57 results, which is better than zero but way less than 500. I will take care of these and look further....Search method -> regex
Please Log in or Create an account to join the conversation.
- Franz Frese
- Away
- Elite Member
Please Log in or Create an account to join the conversation.
- fisharebest
- Offline
- Administrator
Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Please Log in or Create an account to join the conversation.
- Franz Frese
- Away
- Elite Member
SQLSTATE[42000]: Syntax error or access violation: 1139 Got error 'repetition-operator operand invalid' from regexp (SQL: select `i_id` from `webindividuals` where `i_file` = 1 and `i_gedcom` REGEXP ^((?! 1 BIRT)(.| ))*$) …/vendor/illuminate/database/Connection.php:712
Please Log in or Create an account to join the conversation.
- fisharebest
- Offline
- Administrator
Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Please Log in or Create an account to join the conversation.
- Franz Frese
- Away
- Elite Member
MysqlI Supportenabled
Client API library version
mysqlnd 8.3.2
MySQL 5.7
Please Log in or Create an account to join the conversation.
- fisharebest
- Offline
- Administrator
> versionmysqlnd 8.3.2
This is the PHP driver version number. The MySQL database may be older.
Can you run this SQL statement to confirm.
Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Please Log in or Create an account to join the conversation.
- Franz Frese
- Away
- Elite Member
MySQL 5.7
Please Log in or Create an account to join the conversation.
- hermann
- Offline
- Elite Member
Hermann
Designer of the custom module "Extended Family"
webtrees 2.1.22 (all custom modules installed, PHP 8.3.12, MariaDB 10.6) @ ahnen.hartenthaler.eu
Please Log in or Create an account to join the conversation.
- fisharebest
- Offline
- Administrator
MySQL 8.0 uses "full" (PCRE) regular expressions.
See dev.mysql.com/doc/refman/8.0/en/regexp.html
If you want to use reguler expressions that contain "look-ahead/behind" patterns, then you need to upgrade MySQL.
Also, MySQL 5.7 reached "end of life" in October 2023. It is advisable to upgrade.
Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Please Log in or Create an account to join the conversation.
- Franz Frese
- Away
- Elite Member
We have no direct influence for change of version.
Please Log in or Create an account to join the conversation.