Does anyone on /g/ know regex? I have this string and need to remove everything except "Pepeman, hueman", "Spiderman" and "Moot".Pepeman, hueman A B C Spiderman B D Moot EF MON-FRI,-,
Currently I have 8 lines of shitty Java replace and replaceAll statements but i would like something more clean
>>55615291
Your replace and replaceAll statements are probably more clean than the regex.
>>55615291
https://regex101.com/
OH SHIT IS GOOGLE DOWN?
But seriously, go to regexone and actually learn regex. Seriously worth the effort.
>Being this retarded
I really wonder what goes on in your mind, like are you really that stupid or are you just lazy? Can't you use your brain?
>>55615316
>Can't you use your brain?
no
>>55615316
Nice regex solution you got there. That's some really intellectual shit
>>55615360
(regex | intellectual)
>>55615315
It's been down 3 times so far. Has been back up a few minutes later though.
I only had problems with /g/mail though, not the search engine.
>>55615291s/(Pepeman, hueman).*(Spiderman).*(Moot).*/\1 \2 \3/
(((Pepe|hue|Super)man)|Moot)
I think
>>55615384
Yeah, that's totally wrong. Pepeman, hueman, spuderman and moot can be anything. Only A B C D EF MON-FRI are static
>>55615413([A-Z]{1,3} )|([A-Z]{3}.*)
>>55615291
use a gui tool retarded winbabby
http://www.den4b.com/?x=products&product=renamer
>>55615291echo 'Pepeman, hueman A B C Spiderman B D Moot EF MON-FRI,-,' |sed -r -e 's/[A-Z][^a-z]//g' -e 's/\s[^a-zA-Z ]+//g'
output:Pepeman, hueman Spiderman Moot
Try my solution
>>55615416
Proof attached.
>>55615291
>still using RegEx
>2006
short:sed -r -e 's/[A-Z][^a-z]//g' -e 's/\s[^a-zA-Z ]+//g'
>>55615416
>>55615478
Thank you Anon, here's 3 indian dollars
>>55615506
>sed
dumb nigger