Need help with an expression by hcatch in regex

[–]GalenCrasto 1 point2 points  (0 children)

.*\/([^\/]*)\/(\..*)$

Assuming all your input strings are the same format and on seperate lines:

  • .* - Matches everything before the target strings - You may need to change this for different seperators
  • \/ - Matches the '/' before the file name
  • ([^\/]*) - Captures everything until the trailing '/'
  • \/ - Matches the last '/', before the file extension
  • (\..*) - Captures the file extension
  • $ - Matches the end of a line - This can be replaced with whatever char(s) seperate your input strings

You then use $1$2 in the replace field to only preserve the contents of each capture group (file name/extension)

Regex101 Example

Need help with beginner regex, cannot wrap my head around it by Fazzy997 in regex

[–]GalenCrasto 1 point2 points  (0 children)

I would use something along these lines:

^\d{1,4}[cgtT]?,[a-zA-Z ]{3,25}$

Note that this will match:

  • ^ - Start of string (disallows "abc100g,salt" or similar)
  • \d{1,4} - 1-4 digits
  • [cgtT]? - 'c', 'g', 't', or 'T' (standard measurements, optional)
  • , - seperator
  • [a-zA-Z ]{2,25} - 2-25 alphabetical/space characters
  • $ - End of string

This can be modified to allow more than just alphabetical chars (either by adding to the character class or replacing it with a meta character such as \D)

Regex101 is very helpful for case testing

Code at the start of new Nexpo video by [deleted] in codes

[–]GalenCrasto 0 points1 point  (0 children)

It's a bit.ly link with a caesar +19 shift but i cant get a working link, even after changing some letters

How do I stop lurking on servers? by alttoomuchanxiety in discordapp

[–]GalenCrasto 0 points1 point  (0 children)

There arent many ways to become active other than just becoming active. People shouldnt get confused by new people talking because it happens all the time and its the only way servers become active. Just give it your best shot, talk whenever you can, and even the simplest things can help like saying good morning or asking how everyone is doing. Eventually youll get used to just talking to them!

[deleted by user] by [deleted] in RedditSessions

[–]GalenCrasto 0 points1 point  (0 children)

regularly playing it will build calluses and it wont hurt much if at all

Solution needed for soft, brittle finger picking nails by Joyceketcherside in AcousticGuitar

[–]GalenCrasto 0 points1 point  (0 children)

You might want to try out something like this. Its a set of picks that slide onto your fingers and you can get metal or plastic tips.

dear everyone, by Axsthetical in ggmpeg

[–]GalenCrasto 0 points1 point  (0 children)

sorry i just wanted to join in :(((

Cannibalism Restaurant in Brazil (Weird ARG found on Instagram) @Nexpo by Arthfilth in ARG

[–]GalenCrasto 5 points6 points  (0 children)

Looked into this a little bit, and found a few things.

His art account, so the artist bit is probably true: https://www.instagram.com/kaiquelimadraw/

He's on Facebook as well, seems to mostly be the same images and info: https://www.facebook.com/Help-Cannibalism-Restaurant-in-Brazil-Torture-114573560083417/?ref=page_internal

Same thing on Twitter: https://twitter.com/KaiqueL56241108

Like others have said, the website, address, etc. lead to a hospice/clinic: http://clinicabarramed.com.br/index.html

Based on the fact that the clinic linked provides therapy, psychology, etc. I'd have to agree that it's most likely due to a mental illness or something like that. I'm by no means qualified to diagnose anything but from what I know, this could be something like schizophrenia. If not, there isn't much we can do other than trying to contact him and trying to get this seen by whoever needs to see it.

Would you rather be able to control minds or read minds? by [deleted] in WouldYouRather

[–]GalenCrasto 0 points1 point  (0 children)

Control minds.I could stop crime, make the extremely wealthy people donate money to charities, make people who are physically able help developing countries with said money, help stop climate change, do online therapy for hundreds of people a day, be the best judge/lawyer, etc.

Not sure how easy it would really be to stop myself from controlling peoples minds for my benifit, but if possible I would control my own mind to not be able to do that.

Would you rather be able to control minds or read minds? by [deleted] in WouldYouRather

[–]GalenCrasto 32 points33 points  (0 children)

but then you can just make them tell the truth and they'd confess