mamot.fr is one of the many independent Mastodon servers you can use to participate in the fediverse.
Mamot.fr est un serveur Mastodon francophone, géré par La Quadrature du Net.

Server stats:

3.5K
active users

#regex

6 posts6 participants2 posts today

#python #pandas #regex
Ein großer Fallstrick für mich, sind die unterschiedlichen Rückgabewerte.
pandas lässt recht einfach auf den gesuchten Regex als Rückgabewert zugreifen, bei python zusammen mit re braucht es eine extra Schleife, wenn man den Regex als Rückgabewert will.
Der Kleinkram macht immer den Unerschied!

I have a #regex problem
wikidata.org/wiki/Property:P12 allows " [-]?[1-9]\d* " as the regex for the external identifier. From what I understand, the identifier could then start or not with a - (which is great, because some IDs have it and some haven't).

Except when I try to add the identifier "-24371055" (with the initial -) here inventaire.io/entity/inv:85e76 on @inventaire I get an error message. Inventaire uses #Wikidata properties and constraints.

What am I missing?

www.wikidata.orgNooSFere publisher IDID for a publishing house in the NooSFere database

macro is not a replacement for learning regular expressions since there are nuances that a DSL can cover such language specific syntax like PCRE; rather, productivity is the key. As for me, I do not want to write raw regular expression, I would prefer an abstraction to make it easier on the eyes and hands.
#regex
francismurillo.github.io/2017-

Fn/Log · Exploring Emacs rx MacroRegular Expression Some people, when confronted with a problem, think "I know, I'll use regular expressions." Now they have two problems. - Jamie Zawinski