Where communities thrive

• Join over 1.5M+ people
• Join over 100K+ communities
• Free without limits
Activity
• Jun 19 2020 20:09
@krisb1220 banned @Gastony
• May 14 2020 22:39
• May 14 2020 22:38
@bjorno43 banned @real-action
• Feb 01 2020 00:27
@bjorno43 banned @Ndoua
• Jan 07 2020 03:10
@bjorno43 banned @doctor-sam
• Aug 17 2019 09:32
• Jun 20 2019 21:19
@bjorno43 banned @shenerd140
• Apr 25 2019 17:13
@mstellaluna banned @cmal
• Jan 08 2019 22:05
@mstellaluna banned @dertiuss323
• Nov 07 2018 04:42
User @texas2010 unbanned @ows-ali
• Nov 02 2018 16:25
@texas2010 banned @ows-ali
• Oct 12 2018 05:50
@bjorno43 banned @NACH74
• Oct 05 2018 23:02
@mstellaluna banned @JomoPipi
• Sep 16 2018 12:21
@bjorno43 banned @yash-kedia
• Sep 16 2018 12:16
@bjorno43 banned @vnikifirov
• Sep 05 2018 08:12
User @bjorno43 unbanned @androuino
• Sep 05 2018 07:38
@bjorno43 banned @androuino
• Aug 23 2018 16:57
User @bjorno43 unbanned @rahuldkjain
• Aug 23 2018 16:23
@bjorno43 banned @rahuldkjain
• Jul 29 2018 14:13
User @bjorno43 unbanned @jkyereh
alpox
@alpox
@tiagocorreiaalmeida You can use w{0,3} to allow w to be there 0-3 times
Tiago Correia
@tiagocorreiaalmeida
but if I want to be really 3 isnt w{3} the way?
alpox
@alpox
@tiagocorreiaalmeida Yes, but w can also be there 0 times
So if you want that both exactly - only 3 or 0 times - you'd need (w{3})?
Tiago Correia
@tiagocorreiaalmeida
taht what I have but once again im runing into the same problem the groups one, was trying to figure a way of not having it as a group or ignore it on the matches
alpox
@alpox
@tiagocorreiaalmeida Why ignore it?
Tiago Correia
@tiagocorreiaalmeida
how would you do it to only return the domain?
alpox
@alpox
@tiagocorreiaalmeida /.../.exec(url)[3]
Or url.match(/.../)[3]
Tiago Correia
@tiagocorreiaalmeida
alpox
@alpox
@tiagocorreiaalmeida Ah ok .match works different it seems... use .exec then :D
With .exec you can get out specific capturing groups
Tiago Correia
@tiagocorreiaalmeida
that's diferent :D i should invest more time inregex
anyway still trying to figure out why that 2 one
gets the dot
:D
regex is the kind of thing you get all motivated to use and then you are like, yeah ok see you later
:D
alpox
@alpox
@tiagocorreiaalmeida 1. entry -- is the whole match. (Index 0)
1. entry -- is the first capturing group (Index 1)
2. entry -- is the second capturing group (Index 2)
....
Tiago Correia
@tiagocorreiaalmeida
.com*
look above
happens only on that case
in the others I only get the domain and not what comes after the dot its what I mean
alpox
@alpox
@tiagocorreiaalmeida What regex do you have now?
Liam Docherty
@ldocherty1

I tried if(outcome1.equalsIgnoreCase("Yes")){.

However, the program runs but doesn't being the user to that method when they input "Yes" or "No". How can I fix this?

        System.out.println("Please enter the one of the following exactly how you see on your display 'Yes' or 'No'");
outcome1=userinput.next();
if(outcome1.equalsIgnoreCase("Yes")){
FunctionalSkills();
}
if(outcome1.equalsIgnoreCase("No")){
System.out.println("Thanks for using the Liam's UCAS grade calculator.");
System.exit(0);
} 
Tiago Correia
@tiagocorreiaalmeida
@alpox none I reseted it will give it a new look tomorrow nad start from the bottom :D I couldnt write nothing in regex 1month ago so this will get better with presistence, but thanks for the help!
CamperBot
@camperbot
tiagocorreiaalmeida sends brownie points to @alpox :sparkles: :thumbsup: :sparkles:
:star2: 1455 | @alpox |http://www.freecodecamp.com/alpox
alpox
@alpox
@tiagocorreiaalmeida Heheh okay :D regex takes time to understand
Tiago Correia
@tiagocorreiaalmeida
still there's something that's usefull in all the programming languages I would say so its better to try to get better at it always as possible
alpox
@alpox
Yea its very good to know
Tiago Correia
@tiagocorreiaalmeida
building any programming project at moment for the university?
alpox
@alpox
@tiagocorreiaalmeida not really a project. Ill soon have to start training a neural network for dialect recognition
Tiago Correia
@tiagocorreiaalmeida
sounds like something I wouldnt be able to do :D
alpox
@alpox
@tiagocorreiaalmeida Well same here :D i don't know much about it yet
@tiagocorreiaalmeida But i finished the crap with the essay ^^
Tiago Correia
@tiagocorreiaalmeida
in the end dont you have to create a project to show as thesis or something aswell?
alpox
@alpox
@tiagocorreiaalmeida yea next semester. No project though
@tiagocorreiaalmeida It depends a bit on what i get. I guess i will do some datastructure research for datase indices
@tiagocorreiaalmeida I still have to go ask the professor for if he has something good for me
It will maybe be something like implementing stuff from newest research in a specific environment, maybe improve it and test it
any opinions on angular vs react?
Moisés Man
@moigithub
full equiped car vs a bike
framework vs library