From mikefrag at gmail.com Wed Dec 7 13:30:59 2022 From: mikefrag at gmail.com (Mike Fragassi) Date: Wed, 7 Dec 2022 15:30:59 -0600 Subject: [Chicago-talk] Meetup.com will shut down the Chicago Perl Meetup group tomorrow Message-ID: I've gotten emails from Meetup.com about this, but have ignored & forgotten about them. But we now only have a day left to "save" it. I'm not sure what happens if we don't; whether the page and comments ( https://www.meetup.com/chicagopm) will be deleted entirely, or just locked, or what. To keep it going is $70 for 6 months. I'm willing to pony up, for now, but only if we intend to use it. Any thoughts? We still have this mailing list (although I don't know who/what is maintaining this) and http://chicago.pm.org/. (Doug, that's you, right?) -- Mike F. -------------- next part -------------- An HTML attachment was scrubbed... URL: From andy at petdance.com Wed Dec 7 19:28:50 2022 From: andy at petdance.com (Andy Lester) Date: Wed, 7 Dec 2022 21:28:50 -0600 Subject: [Chicago-talk] Meetup.com will shut down the Chicago Perl Meetup group tomorrow In-Reply-To: References: Message-ID: <7B668742-797C-4646-9F32-4AF327611877@petdance.com> > > To keep it going is $70 for 6 months. I'm willing to pony up, for now, but only if we intend to use it. > We have no meetings. I see no reason for Meetup. :-( Andy From richard at rushlogistics.com Thu Dec 8 05:33:11 2022 From: richard at rushlogistics.com (Richard Reina) Date: Thu, 08 Dec 2022 08:33:11 -0500 Subject: [Chicago-talk] Meetup.com will shut down the Chicago Perl Meetup group tomorrow In-Reply-To: <7B668742-797C-4646-9F32-4AF327611877@petdance.com> References: <7B668742-797C-4646-9F32-4AF327611877@petdance.com> Message-ID: <1670506391.pxkmhzxq0wkkww8w@hostingemail.digitalspace.net> We can still propose or call a meeting by sending out an email to chicago-talk at pm.org, correct? On Wed, 7 Dec 2022 21:28:50 -0600, Andy Lester wrote: > > To keep it going is $70 for 6 months. I'm willing to pony up, for now, but only if we intend to use it. > We have no meetings. I see no reason for Meetup. :-( Andy _______________________________________________ Chicago-talk mailing list Chicago-talk at pm.org https://mail.pm.org/mailman/listinfo/chicago-talk ? From mikefrag at gmail.com Thu Dec 8 06:18:16 2022 From: mikefrag at gmail.com (Mike Fragassi) Date: Thu, 8 Dec 2022 08:18:16 -0600 Subject: [Chicago-talk] Meetup.com will shut down the Chicago Perl Meetup group tomorrow In-Reply-To: <1670506391.pxkmhzxq0wkkww8w@hostingemail.digitalspace.net> References: <7B668742-797C-4646-9F32-4AF327611877@petdance.com> <1670506391.pxkmhzxq0wkkww8w@hostingemail.digitalspace.net> Message-ID: Oh yeah. Meetup.com's only real benefits for running meetings, relative to just this list, seem to be that people can RSVP, and add the meeting to whatever calendar app they use. But it's real strength is that other people in other groups can see the upcoming meetings and decide to drop in. Versus having to be a member of the mailing list. I know that has pulled in people to meetings before, although I don't know how widely Meetup is being used by other local tech grub groups these days, since they added fees. So essentially, it could help with Perl evangelism. If we ever have Perl-specific meetings again. On Thu, Dec 8, 2022, 7:33 AM Richard Reina wrote: > We can still propose or call a meeting by sending out an email to > chicago-talk at pm.org, correct? > > > > > > > On Wed, 7 Dec 2022 21:28:50 -0600, Andy Lester wrote: > > > > > To keep it going is $70 for 6 months. I'm willing to pony up, for now, > but only if we intend to use it. > > > > > > We have no meetings. I see no reason for Meetup. :-( > > Andy > _______________________________________________ > Chicago-talk mailing list > Chicago-talk at pm.org > https://mail.pm.org/mailman/listinfo/chicago-talk > > _______________________________________________ > Chicago-talk mailing list > Chicago-talk at pm.org > https://mail.pm.org/mailman/listinfo/chicago-talk > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mikefrag at gmail.com Thu Dec 8 06:20:50 2022 From: mikefrag at gmail.com (Mike Fragassi) Date: Thu, 8 Dec 2022 08:20:50 -0600 Subject: [Chicago-talk] Meetup.com will shut down the Chicago Perl Meetup group tomorrow In-Reply-To: References: <7B668742-797C-4646-9F32-4AF327611877@petdance.com> <1670506391.pxkmhzxq0wkkww8w@hostingemail.digitalspace.net> Message-ID: "tech grub groups" is an autocorrect mistake I didn't spot & delete, but free food is also a great tool of tech evangelism, and it makes having accurate RSVPs a bit more important! On Thu, Dec 8, 2022, 8:18 AM Mike Fragassi wrote: > Oh yeah. Meetup.com's only real benefits for running meetings, relative to > just this list, seem to be that people can RSVP, and add the meeting to > whatever calendar app they use. But it's real strength is that other people > in other groups can see the upcoming meetings and decide to drop in. Versus > having to be a member of the mailing list. I know that has pulled in people > to meetings before, although I don't know how widely Meetup is being used > by other local tech grub groups these days, since they added fees. > > So essentially, it could help with Perl evangelism. If we ever have > Perl-specific meetings again. > > On Thu, Dec 8, 2022, 7:33 AM Richard Reina > wrote: > >> We can still propose or call a meeting by sending out an email to >> chicago-talk at pm.org, correct? >> >> >> >> >> >> >> On Wed, 7 Dec 2022 21:28:50 -0600, Andy Lester wrote: >> >> > >> > To keep it going is $70 for 6 months. I'm willing to pony up, for now, >> but only if we intend to use it. >> > >> >> >> >> We have no meetings. I see no reason for Meetup. :-( >> >> Andy >> _______________________________________________ >> Chicago-talk mailing list >> Chicago-talk at pm.org >> https://mail.pm.org/mailman/listinfo/chicago-talk >> >> _______________________________________________ >> Chicago-talk mailing list >> Chicago-talk at pm.org >> https://mail.pm.org/mailman/listinfo/chicago-talk >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From joel.a.berger at gmail.com Thu Dec 8 07:30:55 2022 From: joel.a.berger at gmail.com (Joel Berger) Date: Thu, 8 Dec 2022 09:30:55 -0600 Subject: [Chicago-talk] Meetup.com will shut down the Chicago Perl Meetup group tomorrow In-Reply-To: <7B668742-797C-4646-9F32-4AF327611877@petdance.com> References: <7B668742-797C-4646-9F32-4AF327611877@petdance.com> Message-ID: Sadly, I agree. All holding onto it does is keep the invite list and I could probably invite most of our former regulars by hand if I had to. I see no reason to pay for that. I do still hold out hope of having a generalist programming meetup somewhere in the northwest burbs if I can find the right place to do it, but I can't imagine it would be Perl (primarily) focused at this point. btw, if anyone has an idea of a good place to hold such an event, somewhere between Des Plaines and Barrington, let me know. On Wed, Dec 7, 2022 at 9:29 PM Andy Lester wrote: > > > > > To keep it going is $70 for 6 months. I'm willing to pony up, for now, > but only if we intend to use it. > > > > > > We have no meetings. I see no reason for Meetup. :-( > > Andy > _______________________________________________ > Chicago-talk mailing list > Chicago-talk at pm.org > https://mail.pm.org/mailman/listinfo/chicago-talk > -------------- next part -------------- An HTML attachment was scrubbed... URL: From richard at rushlogistics.com Sat Dec 24 07:59:14 2022 From: richard at rushlogistics.com (Richard Reina) Date: Sat, 24 Dec 2022 10:59:14 -0500 Subject: [Chicago-talk] Help with Regex Message-ID: <1671897554.m4po1g1pmo04s8ok@hostingemail.digitalspace.net> Happy Holidays Perl Family, I am trying to use the regex below to find City, ST. Zip in a file. While the below does work for instances like Chicago, IL 60614 or Dallas, TX 75234, it does not work in instances with multi word cities like Salt Lake City, UT 89159 or in instances with nine digit zip codes like Tampa, FL 33592-2787. Any help in getting my regex to work would be greatly appreciated. ? ?if ($row =~ /^([^,]+),\s([A-Z]{2})(?:\s(\d{5}-?\d{4}?))?$/) { ? ? ?? ? ? ? print "I think I found a city state zip:\n"; ? ? ? print "$row\n"; ? ? ? chomp (my $ff=); ? ? ? ? ? ?? ? ? ? } Thanks all, and Happy Holidays! Richard From jkeenan at pobox.com Sat Dec 24 08:50:14 2022 From: jkeenan at pobox.com (James E Keenan) Date: Sat, 24 Dec 2022 11:50:14 -0500 Subject: [Chicago-talk] Help with Regex In-Reply-To: <1671897554.m4po1g1pmo04s8ok@hostingemail.digitalspace.net> References: <1671897554.m4po1g1pmo04s8ok@hostingemail.digitalspace.net> Message-ID: On 12/24/22 10:59, Richard Reina wrote: > Happy Holidays Perl Family, > > I am trying to use the regex below to find City, ST. Zip in a file. While the below does work for instances like Chicago, IL 60614 or Dallas, TX 75234, > it does not work in instances with multi word cities like Salt Lake City, UT 89159 or in instances with nine digit zip codes like Tampa, FL 33592-2787. > Any help in getting my regex to work would be greatly appreciated. > > > > ?if ($row =~ /^([^,]+),\s([A-Z]{2})(?:\s(\d{5}-?\d{4}?))?$/) { > > ? ? ? print "I think I found a city state zip:\n"; > ? ? ? print "$row\n"; > ? ? ? chomp (my $ff=); > > ? ? ? } > I found that, as written, your regex does precisely the opposite of what you claimed it did. ##### sub p { my $address = shift; my ($city, $state, $zip); my $regex = qr/^([^,]+),\s([A-Z]{2})(?:\s(\d{5}-?\d{4}?))?$/; if ($address =~ m/$regex/) { my ($city, $state, $zip) = ($1,$2,$3); print "$city, $state $zip\n"; } else { print "No match\n"; } } p("Chicago, IL 60614"); p("Chicago, IL 60614-0000"); p("Chicago, IL 606140001"); p("Dallas, TX 75234"); p("Salt Lake City, UT 89159"); p("Tampa, FL 33592-2787"); No match Chicago, IL 60614-0000 Chicago, IL 606140001 No match No match Tampa, FL 33592-2787 ##### In this portion of your pattern ... ##### (?:\s(\d{5}-?\d{4}?))? ##### ... the '?:' at the beginning means "cluster, but don't capture". (See 'perldoc perlre'.) The following worked for me. ##### sub r { my $address = shift; my ($city, $state, $zip); my $regex = qr/^ ([^,]+) ,\s ([A-Z]{2}) \s (\d{5}(?:-?\d{4})?) $/x; if ($address =~ m/$regex/) { my ($city, $state, $zip) = ($1,$2,$3); print "$city, $state $zip\n"; } else { print "No match\n"; } } r("Chicago, IL 60614"); r("Chicago, IL 60614-0000"); r("Chicago, IL 606140001"); r("Dallas, TX 75234"); r("Salt Lake City, UT 89159"); r("Tampa, FL 33592-2787"); Chicago, IL 60614 Chicago, IL 60614-0000 Chicago, IL 606140001 Dallas, TX 75234 Salt Lake City, UT 89159 Tampa, FL 33592-2787 ##### From richard at rushlogistics.com Sat Dec 24 09:30:39 2022 From: richard at rushlogistics.com (Richard Reina) Date: Sat, 24 Dec 2022 12:30:39 -0500 Subject: [Chicago-talk] Help with Regex In-Reply-To: References: <1671897554.m4po1g1pmo04s8ok@hostingemail.digitalspace.net> Message-ID: <1671903039.tpo3uwxwnk804444@hostingemail.digitalspace.net> Thank you very much for your reply. Your level of coding is way superior to mine. This was very helpful however for some reason certain instances, like the examples below, do not produce matches. r("Ogden, UT, 84415"); ? r("Dallas, TX, 75234"); Can't figure out why. ? On Sat, 24 Dec 2022 11:50:14 -0500, James E Keenan wrote: On 12/24/22 10:59, Richard Reina wrote: > Happy Holidays Perl Family, > > I am trying to use the regex below to find City, ST. Zip in a file. While the below does work for instances like Chicago, IL 60614 or Dallas, TX 75234, > it does not work in instances with multi word cities like Salt Lake City, UT 89159 or in instances with nine digit zip codes like Tampa, FL 33592-2787. > Any help in getting my regex to work would be greatly appreciated. > > > > ?if ($row =~ /^([^,]+),\s([A-Z]{2})(?:\s(\d{5}-?\d{4}?))?$/) { > > ? ? ? print "I think I found a city state zip:\n"; > ? ? ? print "$row\n"; > ? ? ? chomp (my $ff=); > > ? ? ? } > I found that, as written, your regex does precisely the opposite of what you claimed it did. ##### sub p { my $address = shift; my ($city, $state, $zip); my $regex = qr/^([^,]+),\s([A-Z]{2})(?:\s(\d{5}-?\d{4}?))?$/; if ($address =~ m/$regex/) { my ($city, $state, $zip) = ($1,$2,$3); print "$city, $state $zip\n"; } else { print "No match\n"; } } p("Chicago, IL 60614"); p("Chicago, IL 60614-0000"); p("Chicago, IL 606140001"); p("Dallas, TX 75234"); p("Salt Lake City, UT 89159"); p("Tampa, FL 33592-2787"); No match Chicago, IL 60614-0000 Chicago, IL 606140001 No match No match Tampa, FL 33592-2787 ##### In this portion of your pattern ... ##### (?:\s(\d{5}-?\d{4}?))? ##### ... the '?:' at the beginning means "cluster, but don't capture". (See 'perldoc perlre'.) The following worked for me. ##### sub r { my $address = shift; my ($city, $state, $zip); my $regex = qr/^ ([^,]+) ,\s ([A-Z]{2}) \s (\d{5}(?:-?\d{4})?) $/x; if ($address =~ m/$regex/) { my ($city, $state, $zip) = ($1,$2,$3); print "$city, $state $zip\n"; } else { print "No match\n"; } } r("Chicago, IL 60614"); r("Chicago, IL 60614-0000"); r("Chicago, IL 606140001"); r("Dallas, TX 75234"); r("Salt Lake City, UT 89159"); r("Tampa, FL 33592-2787"); Chicago, IL 60614 Chicago, IL 60614-0000 Chicago, IL 606140001 Dallas, TX 75234 Salt Lake City, UT 89159 Tampa, FL 33592-2787 ##### ? From amead at alanmead.org Sat Dec 24 10:38:42 2022 From: amead at alanmead.org (Alan Mead) Date: Sat, 24 Dec 2022 12:38:42 -0600 Subject: [Chicago-talk] Help with Regex In-Reply-To: <1671903039.tpo3uwxwnk804444@hostingemail.digitalspace.net> References: <1671897554.m4po1g1pmo04s8ok@hostingemail.digitalspace.net> <1671903039.tpo3uwxwnk804444@hostingemail.digitalspace.net> Message-ID: Richard, You need a good regex debugger. My favorite is: https://regex101.com/ Your two new samples fail because there's a comma after state and your regex doesn't allow that (you can add: ,* after ([A-Z]{2}). I have no idea how regular your data are, but if these are random addresses, you will have all kinds of problems. For example the two "\s" below require exactly a single space character (no more, no less). ^ ([^,]+) *,\s* ([A-Z]{2}) *\s* (\d{5}(?:-?\d{4})?) $ -Alan > Thank you very much for your reply. Your level of coding is way superior to mine. This was very helpful however for some reason certain instances, > like the examples below, do not produce matches. > > r("Ogden, UT, 84415"); > r("Dallas, TX, 75234"); > > Can't figure out why. > > > > > > > On Sat, 24 Dec 2022 11:50:14 -0500, James E Keenan wrote: > > On 12/24/22 10:59, Richard Reina wrote: >> Happy Holidays Perl Family, >> >> I am trying to use the regex below to find City, ST. Zip in a file. While the below does work for instances like Chicago, IL 60614 or Dallas, TX 75234, >> it does not work in instances with multi word cities like Salt Lake City, UT 89159 or in instances with nine digit zip codes like Tampa, FL 33592-2787. >> Any help in getting my regex to work would be greatly appreciated. >> >> >> >> ?if ($row =~ /^([^,]+),\s([A-Z]{2})(?:\s(\d{5}-?\d{4}?))?$/) { >> >> ? ? ? print "I think I found a city state zip:\n"; >> ? ? ? print "$row\n"; >> ? ? ? chomp (my $ff=); >> >> ? ? ? } >> > I found that, as written, your regex does precisely the opposite of what > you claimed it did. > > ##### > sub p { > my $address = shift; > my ($city, $state, $zip); > my $regex = qr/^([^,]+),\s([A-Z]{2})(?:\s(\d{5}-?\d{4}?))?$/; > if ($address =~ m/$regex/) { > my ($city, $state, $zip) = ($1,$2,$3); > print "$city, $state $zip\n"; > } > else { > print "No match\n"; > } > } > > p("Chicago, IL 60614"); > p("Chicago, IL 60614-0000"); > p("Chicago, IL 606140001"); > p("Dallas, TX 75234"); > p("Salt Lake City, UT 89159"); > p("Tampa, FL 33592-2787"); > > No match > Chicago, IL 60614-0000 > Chicago, IL 606140001 > No match > No match > Tampa, FL 33592-2787 > ##### > > In this portion of your pattern ... > > ##### > (?:\s(\d{5}-?\d{4}?))? > ##### > > ... the '?:' at the beginning means "cluster, but don't capture". (See > 'perldoc perlre'.) > > The following worked for me. > > ##### > sub r { > my $address = shift; > my ($city, $state, $zip); > my $regex = qr/^ > ([^,]+) > ,\s > ([A-Z]{2}) > \s > (\d{5}(?:-?\d{4})?) > $/x; > if ($address =~ m/$regex/) { > my ($city, $state, $zip) = ($1,$2,$3); > print "$city, $state $zip\n"; > } > else { > print "No match\n"; > } > } > > r("Chicago, IL 60614"); > r("Chicago, IL 60614-0000"); > r("Chicago, IL 606140001"); > r("Dallas, TX 75234"); > r("Salt Lake City, UT 89159"); > r("Tampa, FL 33592-2787"); > > Chicago, IL 60614 > Chicago, IL 60614-0000 > Chicago, IL 606140001 > Dallas, TX 75234 > Salt Lake City, UT 89159 > Tampa, FL 33592-2787 > ##### > > > _______________________________________________ > Chicago-talk mailing list > Chicago-talk at pm.org > https://mail.pm.org/mailman/listinfo/chicago-talk -- Alan D. Mead, Ph.D. President, Talent Algorithms Inc. science + technology = better workers https://talalg.com Take care to get what you like or you will be forced to like what you get. Where there is no ventilation fresh air is declared unwholesome. Where there is no religion hypocrisy becomes good taste. Where there is no knowledge ignorance calls itself science. -- Shaw, from "Maxims for Revolutionists" -------------- next part -------------- An HTML attachment was scrubbed... URL: From shlomif at shlomifish.org Sat Dec 24 11:08:23 2022 From: shlomif at shlomifish.org (Shlomi Fish) Date: Sat, 24 Dec 2022 21:08:23 +0200 Subject: [Chicago-talk] Help with Regex In-Reply-To: References: <1671897554.m4po1g1pmo04s8ok@hostingemail.digitalspace.net> <1671903039.tpo3uwxwnk804444@hostingemail.digitalspace.net> Message-ID: <20221224210823.0ed3e2cf@shlomifish.org> Hi all, On Sat, 24 Dec 2022 12:38:42 -0600 Alan Mead wrote: > Richard, > > You need a good regex debugger. My favorite is: > > https://regex101.com/ > In addition, I suggest writing a tests' suite: * https://github.com/shlomif/what-you-should-know-about-automated-testing * https://www.shlomifish.org/Perl-Begin/uses/qa/ > Your two new samples fail because there's a comma after state and your > regex doesn't allow that (you can add: ,* after ([A-Z]{2}). > > I have no idea how regular your data are, but if these are random > addresses, you will have all kinds of problems. For example the two "\s" > below require exactly a single space character (no more, no less). > > ^ > ([^,]+) > *,\s* > ([A-Z]{2}) > *\s* > (\d{5}(?:-?\d{4})?) > $ > -- Shlomi Fish https://www.shlomifish.org/ https://github.com/shlomif/shlomif-computer-settings/ - my dotfiles https://en.wikipedia.org/wiki/Evil redirects to XSLT. ? https://www.shlomifish.org/humour/bits/facts/XSLT/ Please reply to list if it's a mailing list post - https://shlom.in/reply .