@infinity In your regex, at the top, before the first @? :/
Notices by ☭⚑ Comrade Angles ⚑☭ (angle@anticapitalist.party), page 17
-
☭⚑ Comrade Angles ⚑☭ (angle@anticapitalist.party)'s status on Tuesday, 24-Jul-2018 15:19:28 EDT ☭⚑ Comrade Angles ⚑☭
-
☭⚑ Comrade Angles ⚑☭ (angle@anticapitalist.party)'s status on Tuesday, 24-Jul-2018 15:15:41 EDT ☭⚑ Comrade Angles ⚑☭
And heck, one more. This is a pretty ambitious game I've been working on for years, but honestly the code is bad and if I do anything with it I'm gonna want to restart from scratch, probably in a language other than java. XD
-
☭⚑ Comrade Angles ⚑☭ (angle@anticapitalist.party)'s status on Tuesday, 24-Jul-2018 15:13:35 EDT ☭⚑ Comrade Angles ⚑☭
Making a bunch of my old repos public. This is all game stuff I've decided I'm never gonna do anything with. If you want me to slap an open source license on one of these, just ask. XD
https://github.com/Angular-Angel/RoguelikeEngine
https://github.com/Angular-Angel/BeneathTheEarth
https://github.com/Angular-Angel/Crovasshun -
☭⚑ Comrade Angles ⚑☭ (angle@anticapitalist.party)'s status on Tuesday, 24-Jul-2018 14:59:25 EDT ☭⚑ Comrade Angles ⚑☭
@infinity Oh, I think you have a rogue quotation mark at the beginning there. :/
In conversation from anticapitalist.party permalink -
☭⚑ Comrade Angles ⚑☭ (angle@anticapitalist.party)'s status on Tuesday, 24-Jul-2018 14:58:56 EDT ☭⚑ Comrade Angles ⚑☭
@infinity I think something's missing? I made a change so it would match single letter handles, and it seems to be doing fine on that selection? Try:
/@([\w\.]*\w+)(@?[\w]+(\.\w+)+)?(\:\d+)?/gi
In conversation from anticapitalist.party permalink -
☭⚑ Comrade Angles ⚑☭ (angle@anticapitalist.party)'s status on Tuesday, 24-Jul-2018 14:53:46 EDT ☭⚑ Comrade Angles ⚑☭
@infinity Okay, one more addition, another \w+, so that it doesn't let you have a > on the end of your local username. Now I think i'm pretty happy? That gives: /@([\w\.]+\w+)(@?[\w]+(\.\w+)+)?(\:\d+)?/gi, which seems about right, though it's pretty aggressive about matching things. That should be fine though. :/
In conversation from anticapitalist.party permalink -
☭⚑ Comrade Angles ⚑☭ (angle@anticapitalist.party)'s status on Tuesday, 24-Jul-2018 14:50:18 EDT ☭⚑ Comrade Angles ⚑☭
@infinity Alright, moving the second @ and it's question mark into the second capture group seems to help: /@([\w\.]+)(@?[\w]+(\.\w+)+)?(\:\d+)?/gi
Now, am I happy with this behaviour? :/
In conversation from anticapitalist.party permalink -
☭⚑ Comrade Angles ⚑☭ (angle@anticapitalist.party)'s status on Tuesday, 24-Jul-2018 14:40:46 EDT ☭⚑ Comrade Angles ⚑☭
@infinity Yeah you're right. Hold up, lemme screw with it a bit. :/
In conversation from anticapitalist.party permalink -
☭⚑ Comrade Angles ⚑☭ (angle@anticapitalist.party)'s status on Tuesday, 24-Jul-2018 14:35:07 EDT ☭⚑ Comrade Angles ⚑☭
@frickhaditcoming Oh! Though, @infinity here might be a wizard, yeah. XD
In conversation from anticapitalist.party permalink -
☭⚑ Comrade Angles ⚑☭ (angle@anticapitalist.party)'s status on Tuesday, 24-Jul-2018 14:32:01 EDT ☭⚑ Comrade Angles ⚑☭
@frickhaditcoming @infinity Lol no, I used intnert tools and got other people to help me. XD
In conversation from anticapitalist.party permalink -
☭⚑ Comrade Angles ⚑☭ (angle@anticapitalist.party)'s status on Tuesday, 24-Jul-2018 14:31:32 EDT ☭⚑ Comrade Angles ⚑☭
@infinity You lost the @ from in front. And with that change, it seems to work for me? Maybe you lost the /gi on the end? :/
In conversation from anticapitalist.party permalink -
☭⚑ Comrade Angles ⚑☭ (angle@anticapitalist.party)'s status on Tuesday, 24-Jul-2018 14:26:00 EDT ☭⚑ Comrade Angles ⚑☭
Alright, I'm up to: /@([\w\.]+)@?([\w]+(\.\w+)+)?(\:\d+)?/gi, which I think solves my problem. Thank you for the help everyone! Sorry if I couldn't reply to everybody, that was a lot of messages and some replies got lost in the noise. :X
In conversation from anticapitalist.party permalink -
☭⚑ Comrade Angles ⚑☭ (angle@anticapitalist.party)'s status on Tuesday, 24-Jul-2018 14:22:44 EDT ☭⚑ Comrade Angles ⚑☭
@infinity I've currently got: /@([\w\d]+)@?([\w\d]+(\.\w+)+)?(\:\d+)?/gi, which seems to work? :/
In conversation from anticapitalist.party permalink -
☭⚑ Comrade Angles ⚑☭ (angle@anticapitalist.party)'s status on Tuesday, 24-Jul-2018 14:18:06 EDT ☭⚑ Comrade Angles ⚑☭
@pounce I'm using https://regexr.com/ to test, it seems to be pretty decent. XD
In conversation from anticapitalist.party permalink Attachments
-
☭⚑ Comrade Angles ⚑☭ (angle@anticapitalist.party)'s status on Tuesday, 24-Jul-2018 14:17:20 EDT ☭⚑ Comrade Angles ⚑☭
@infinity Again, gets some white space and misses consecutive mentions. Try it out in : https://regexr.com/
In conversation from anticapitalist.party permalink Attachments
-
☭⚑ Comrade Angles ⚑☭ (angle@anticapitalist.party)'s status on Tuesday, 24-Jul-2018 14:16:27 EDT ☭⚑ Comrade Angles ⚑☭
@infinity In my test, that misses some instances and grabs a whole lot of unnecessary whitespace. I think I've got something working: /@([\w\d]+)@?([\w\d]+(\.\w+)+)?(\:\d+)?/gi
See how that works?
In conversation from anticapitalist.party permalink -
☭⚑ Comrade Angles ⚑☭ (angle@anticapitalist.party)'s status on Tuesday, 24-Jul-2018 14:13:57 EDT ☭⚑ Comrade Angles ⚑☭
@pounce Yup, okay that works. XD
In conversation from anticapitalist.party permalink -
☭⚑ Comrade Angles ⚑☭ (angle@anticapitalist.party)'s status on Tuesday, 24-Jul-2018 14:13:35 EDT ☭⚑ Comrade Angles ⚑☭
@pounce Acccording to regexr.com that doesn't apply to the second @ symbol. Though, if we add another ? after that... :/
In conversation from anticapitalist.party permalink -
☭⚑ Comrade Angles ⚑☭ (angle@anticapitalist.party)'s status on Tuesday, 24-Jul-2018 14:09:50 EDT ☭⚑ Comrade Angles ⚑☭
@pounce Oooh, looiks pretty good. Can you get it to match local mentions too? Or is that too much? :/
In conversation from anticapitalist.party permalink -
☭⚑ Comrade Angles ⚑☭ (angle@anticapitalist.party)'s status on Tuesday, 24-Jul-2018 14:06:39 EDT ☭⚑ Comrade Angles ⚑☭
@infinity Well, I guess it will try to match it, fail, and move on. Still seems subotimal? Maybe I should just leave it though. :/
In conversation from anticapitalist.party permalink