News:

Wondering if this will always be free?  See why free is better.

Main Menu

How use regex?

Started by dodos26, September 03, 2023, 02:54:32 PM

Previous topic - Next topic

dodos26

I create this regural:
\s(\d+\s\d+|\d+|\d+\.\d+)(\s[a-zA-Z]{1,2}\/s)\s\-\s(\d+\s\d+|\d+|\d+\.\d+)(\s[a-zA-Z]{1,2}\/s)\]|\s(\d+\s\d+|\d+|\d+\.\d+)(\s[a-zA-Z]{1,2}\/s)\]
But And it does what I want it to do. but I want it to search for one more group.
I don't know how to explain it, but this image will show places my expression won't find. I tried lookbehind but either I'm using it wrong or it's not doing what I expect.



Example sample for search:
Projekt X / Project X (2012) [5,63 GiB] [M/LP/DA/NPAM] [AVC 7 000 kb/s] [DTS 1 509 kb/s] [AC-3 640 kb/s]
[Komediowe] » [HD (720p)]   
Shrek Tetralogia / Shrek Tetralogy (2001 - 2010) [28.67 GiB] [DP] [AVC 10.5 Mb/s] [AC-3 640 kb/s]
[Animowane] » [Full HD (1080p)]   
topic    Wilk z Wall Street / The Wolf of Wall Street (2013) [13,99 GiB] [LP] [AVC 10.5 Mb/s] [AC-3 640 kb/s]
[Biograficzne] » [Full HD (1080p)]   
Obecność Trylogia / The Conjuring Trilogy (2013 - 2021) [46,01 GiB] [DA DM LM LP Mj NM] [AVC 28.8 Mb/s][AC-3 448 kb/s - 640 kb/s][MLP FBA 16-ch 3 857 kb/s - 8 283 kb/s][AAC LC 309 kb/s]
[Horror‎] » [HD (720p)]
topic    Limitless (2015–2016) [34,79 GiB] [LP] [AVC 4 831 kb/s] [AC-3 384 kb/s]
[Dreszczowce (Thriller)] » [Full HD (1080p)]   
topic    Jestem Bogiem / Limitless (2011) [3,08 GiB] [LP] [MPEG-4 Visual 3 577 kb/s] [AC-3 640 kb/s]
[Dreszczowce (Thriller)] » [HD (720p)]   
Dr. House / House M.D. (2004 - 2012) [609,87 GiB] [M/LP/DA/NA] [AVC 9 944 kb/s] [DTS 768 kb/s - 1 509 kb/s] [AC-3 384 kb/s - 448 kb/s]
[Dramatyczne] » [Full HD (1080p)]   
The Naked Gun Trylogia (1988 - 1994) [7,84 GiB] [LP] [MPEG-4 Visual 4 058 kb/s] [AC-3 192 kb/s]

shawnb61

Get familiar with this site:
https://regex101.com/

It allows you to test a regex live.

I use it all the time for testing new & changed regexes. 
Address the process rather than the outcome.  Then, the outcome becomes more likely.   - Fripp

dodos26

This answer is really so idiotic that it left me speechless.

live627

What am I looking at? What is the goal here? What all must be matched? What should be in each individual capturing group?

Looks like some file formats and leech rates according to the image.

Sesquipedalian

Quote from: dodos26 on September 03, 2023, 03:05:47 PMThis answer is really so idiotic that it left me speechless.

You failed to explain clearly what you are trying to do and what problems you have encountered. Because of that, it is difficult for others to do anything more than point you toward resources that will help you figure it out for yourself.

I happen to be quite well versed in the intricacies of regular expressions. I could probably have helped you solve your problem easily enough. But after you spoke so rudely to another member of this team and my friend, I refuse. Feel free to go solve your problems for yourself.
I promise you nothing.

Sesqu... Sesqui... what?
Sesquipedalian, the best word in the English language.

Steve

Sorry to break your lock Ses but I just had to say this:

@dodos26 - this is not the first time you've insulted or been rude to a team member. The next time will be your last. Fair warning.
DO NOT pm me for support!

Advertisement: