Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
This AI stuff is SCARY!!!
#43
There's one area I'm finding AI is actually helpful for - regular expressions!!! 
Regex is something which can save hours of manual editing but is so fugly, I pretty much rely on google to find useful bits. 
Imagine my surprise when google (not gemini, just regular google) started answering my regex questions like a champ! 

For example,
  • What regex to find all ": {value}" where {value} is not inside single or double quotes? 

Is Google up to the challenge? It answers! 

Code: (Select All)
: (?![ "'])((?:^"'\r\n:]|:(?! |$))+)(?![ "'])

And I'll be damned, it works! No way I'd have the patience to figure that one out.

Then it answered my follow-up question,
  • What regex to use in Notepad++ to find (above regex) and replace to add single quotes after the : and at the end of the line? 

and google answers

Code: (Select All)
Find:
: (?![ "'])((?:^"'\r\n:]|:(?! |$))+)(?![ "'])$

Replace with:
: '\1'

and that worked too, a single operation that accomplished in 1 second what would have taken me HOURS of manual editing of this 14,000+ lines 600k file. And that was just one example, it helped with 20 other such conundrums.

Oh and did I mention that it also breaks down the regex and explains what each piece does? 

So if I want to stop being a whiny little girl and maybe learn to do this myself, there's that. 

I don't know what AI means for job security or humanity's continued survival, but for stuff like this - tedious shit that you don't want to do - it's pure gold! 

PS the problem comes when it gets used to do stuff that you DO want to do!
Reply


Messages In This Thread
This AI stuff is SCARY!!! - by Unseen Machine - 08-04-2025, 03:49 AM
RE: This AI stuff is SCARY!!! - by Pete - 08-04-2025, 04:00 AM
RE: This AI stuff is SCARY!!! - by Unseen Machine - 08-05-2025, 03:12 AM
RE: This AI stuff is SCARY!!! - by Pete - 08-06-2025, 05:23 PM
RE: This AI stuff is SCARY!!! - by Dimster - 08-11-2025, 02:22 PM
RE: This AI stuff is SCARY!!! - by bplus - 08-11-2025, 02:33 PM
RE: This AI stuff is SCARY!!! - by bplus - 08-11-2025, 03:58 PM
RE: This AI stuff is SCARY!!! - by Dimster - 08-11-2025, 06:24 PM
RE: This AI stuff is SCARY!!! - by Pete - 08-11-2025, 11:11 PM
RE: This AI stuff is SCARY!!! - by Pete - 08-12-2025, 12:36 PM
RE: This AI stuff is SCARY!!! - by Dimster - 08-12-2025, 01:32 PM
RE: This AI stuff is SCARY!!! - by SMcNeill - 08-12-2025, 02:02 PM
RE: This AI stuff is SCARY!!! - by Dimster - 08-12-2025, 02:53 PM
RE: This AI stuff is SCARY!!! - by madscijr - 08-12-2025, 03:24 PM
RE: This AI stuff is SCARY!!! - by Pete - 08-12-2025, 07:19 PM
RE: This AI stuff is SCARY!!! - by madscijr - 08-12-2025, 10:51 PM
RE: This AI stuff is SCARY!!! - by Dimster - 08-13-2025, 12:07 PM
RE: This AI stuff is SCARY!!! - by Pete - 08-13-2025, 04:56 PM
RE: This AI stuff is SCARY!!! - by Dimster - 08-13-2025, 07:25 PM
RE: This AI stuff is SCARY!!! - by PhilOfPerth - 08-13-2025, 10:26 PM
RE: This AI stuff is SCARY!!! - by Unseen Machine - 08-14-2025, 12:05 AM
RE: This AI stuff is SCARY!!! - by Pete - 08-14-2025, 12:08 AM
RE: This AI stuff is SCARY!!! - by Pete - 08-14-2025, 07:58 PM
RE: This AI stuff is SCARY!!! - by Unseen Machine - 08-26-2025, 12:11 AM
RE: This AI stuff is SCARY!!! - by Pete - 08-27-2025, 10:41 PM
RE: This AI stuff is SCARY!!! - by OldMoses - 08-28-2025, 12:11 PM
RE: This AI stuff is SCARY!!! - by Dimster - 08-28-2025, 02:43 PM
RE: This AI stuff is SCARY!!! - by Pete - 08-28-2025, 03:14 PM
RE: This AI stuff is SCARY!!! - by SMcNeill - 08-28-2025, 04:33 PM
RE: This AI stuff is SCARY!!! - by Dimster - 08-28-2025, 06:36 PM
RE: This AI stuff is SCARY!!! - by Pete - 08-28-2025, 07:13 PM
RE: This AI stuff is SCARY!!! - by Helium5793 - 08-29-2025, 12:27 PM
RE: This AI stuff is SCARY!!! - by madscijr - 08-30-2025, 12:04 AM
RE: This AI stuff is SCARY!!! - by Unseen Machine - 08-30-2025, 12:39 AM
RE: This AI stuff is SCARY!!! - by Unseen Machine - 08-30-2025, 05:22 AM
RE: This AI stuff is SCARY!!! - by madscijr - 08-30-2025, 05:34 AM
RE: This AI stuff is SCARY!!! - by Unseen Machine - 08-30-2025, 07:06 AM
RE: This AI stuff is SCARY!!! - by Unseen Machine - 10-20-2025, 09:07 AM
RE: This AI stuff is SCARY!!! - by bplus - 10-20-2025, 12:09 PM
RE: This AI stuff is SCARY!!! - by Unseen Machine - 10-20-2025, 12:45 PM
RE: This AI stuff is SCARY!!! - by bplus - 10-20-2025, 02:23 PM
RE: This AI stuff is SCARY!!! - by Dimster - 10-20-2025, 03:02 PM
RE: This AI stuff is SCARY!!! - by bplus - 10-20-2025, 03:13 PM
RE: This AI stuff is SCARY!!! - by Unseen Machine - 10-20-2025, 03:15 PM
RE: This AI stuff is SCARY!!! - by Unseen Machine - 10-20-2025, 03:21 PM
RE: This AI stuff is SCARY!!! - by madscijr - 10-22-2025, 03:10 PM
RE: This AI stuff is SCARY!!! - by SMcNeill - 10-22-2025, 04:10 PM
RE: This AI stuff is SCARY!!! - by Pete - 10-22-2025, 02:45 PM
RE: This AI stuff is SCARY!!! - by Pete - 10-22-2025, 03:55 PM
RE: This AI stuff is SCARY!!! - by Pete - 10-22-2025, 04:30 PM
RE: This AI stuff is SCARY!!! - by SMcNeill - 10-22-2025, 04:34 PM
RE: This AI stuff is SCARY!!! - by PhilOfPerth - 10-22-2025, 10:26 PM
RE: This AI stuff is SCARY!!! - by JRace - 10-22-2025, 10:38 PM
RE: This AI stuff is SCARY!!! - by PhilOfPerth - 10-22-2025, 11:15 PM
RE: This AI stuff is SCARY!!! - by madscijr - 10-23-2025, 01:50 AM
RE: This AI stuff is SCARY!!! - by bplus - 10-22-2025, 11:40 PM
RE: This AI stuff is SCARY!!! - by madscijr - 10-22-2025, 10:37 PM
RE: This AI stuff is SCARY!!! - by bplus - 10-22-2025, 11:33 PM
RE: This AI stuff is SCARY!!! - by Pete - 10-23-2025, 01:03 AM
RE: This AI stuff is SCARY!!! - by Unseen Machine - 10-23-2025, 02:15 AM
RE: This AI stuff is SCARY!!! - by Unseen Machine - 10-23-2025, 02:35 AM
RE: This AI stuff is SCARY!!! - by madscijr - 10-23-2025, 02:55 AM
RE: This AI stuff is SCARY!!! - by dbox - 10-23-2025, 02:20 PM
RE: This AI stuff is SCARY!!! - by madscijr - 10-23-2025, 02:57 PM
RE: This AI stuff is SCARY!!! - by Unseen Machine - 10-26-2025, 02:08 AM
RE: This AI stuff is SCARY!!! - by madscijr - 10-26-2025, 02:44 AM
RE: This AI stuff is SCARY!!! - by Unseen Machine - 10-26-2025, 03:17 AM
RE: This AI stuff is SCARY!!! - by Unseen Machine - 10-30-2025, 12:12 AM
RE: This AI stuff is SCARY!!! - by madscijr - 10-30-2025, 01:03 AM
RE: This AI stuff is SCARY!!! - by madscijr - 10-30-2025, 01:30 PM
RE: This AI stuff is SCARY!!! - by Unseen Machine - 11-20-2025, 03:48 AM

Forum Jump:


Users browsing this thread: 2 Guest(s)