Post AWPHs7jTOs4K9JqU8e by stefanieschulte@mastodon.cloud
 (DIR) More posts by stefanieschulte@mastodon.cloud
 (DIR) Post #AWOc9JWIdDLxYWCL0C by stefanieschulte@mastodon.cloud
       2023-06-05T21:41:26Z
       
       0 likes, 0 repeats
       
       Could it be that ChatGPT gets even simple regex wrong? Out of curiosity, I asked it to write an expression to identify all occurences of "Volksbanken", but not if the word was preceded by a hashtag.It suggested: \b(?!#)Volksbanken\bDoesn't work (I used https://regex101.com/ to check).  Correct solution (using negative lookbehind instead of negative lookahead): \b(?<!#)Volksbanken\bIf ChatGPT can't even get such simple tasks right - why do people seem to be so impressed with it?
       
 (DIR) Post #AWOc9KSn7k8oTvZ3Am by mo@mastodon.ml
       2023-06-05T23:10:26Z
       
       0 likes, 0 repeats
       
       @stefanieschulte > simple regex> lookbehindThis is not simple regex :blobcatgooglyholdingitsheadinitshands:
       
 (DIR) Post #AWPHs7jTOs4K9JqU8e by stefanieschulte@mastodon.cloud
       2023-06-06T06:58:00Z
       
       0 likes, 0 repeats
       
       @mo For me, those are the use cases where you actually need it, because you can't easily get similar results with simple programming code or search and replace.