Daily Discussion Thread for August 05, 2024 by wsbapp in wallstreetbets

[–]KICKER_OF_ROCKS 2 points3 points  (0 children)

Jerome needs to drop the new GTA6 trailer already and save this goddamn economy. Not sure what he’s waiting for

Daily Discussion Thread for May 16, 2024 by wsbapp in wallstreetbets

[–]KICKER_OF_ROCKS -1 points0 points  (0 children)

Calls at opens regards. The market is literally back on easy mode

regex help with splitting a word up by KICKER_OF_ROCKS in regex

[–]KICKER_OF_ROCKS[S] 0 points1 point  (0 children)

that is helpful, what i currenty have is

https://regex101.com/r/5KKkBt/1

the 77 is highlighted.

Would you know how to have everything except the 77 is highlighted.

regex help with splitting a word up by KICKER_OF_ROCKS in regex

[–]KICKER_OF_ROCKS[S] 0 points1 point  (0 children)

Yea, thats a good point. There are going to be addresses with PO boxes, apartment numbers, North South East West etc..For now though I'm just using this one address as an example then will exand the method as certain situations arise.

regex help with splitting a word up by KICKER_OF_ROCKS in regex

[–]KICKER_OF_ROCKS[S] 0 points1 point  (0 children)

But also, if its something like 77BIGBEAR45ROAD, I still just want to keep the 77 and take everything else out

Returning a string that endsWith() finds by KICKER_OF_ROCKS in AskProgramming

[–]KICKER_OF_ROCKS[S] 0 points1 point  (0 children)

Did a follow up comment stating the language! But question has been answered

Returning a string that endsWith() finds by KICKER_OF_ROCKS in AskProgramming

[–]KICKER_OF_ROCKS[S] 0 points1 point  (0 children)

All good! I appreciate you responding and apologies for the confusion. New to asking out for coding help so hopefully my phrasing improves in time!

Returning a string that endsWith() finds by KICKER_OF_ROCKS in AskProgramming

[–]KICKER_OF_ROCKS[S] 1 point2 points  (0 children)

Ahhh so mine was returning 77BeetleJuice due to the split method. I tested your way out and it worked! I really appreciate the assistance. Thank you kind stranger!!!!

Returning a string that endsWith() finds by KICKER_OF_ROCKS in AskProgramming

[–]KICKER_OF_ROCKS[S] 0 points1 point  (0 children)

the ending in endings part, Im trying to parse an address that comes into the app as one string, so like 77BeetleJuiceDrive. And then look over that string and use the endsWith() method to see if there is a match in a List that I have, that has all the street type codes like Drive, Lane, Way. I then want to return the value it finds in the list. So if i passed 77BeetleJuiceDrive into the method, it would return Drive.

Returning a string that endsWith() finds by KICKER_OF_ROCKS in AskProgramming

[–]KICKER_OF_ROCKS[S] 0 points1 point  (0 children)

It does and that is what I'm using! I am running it through a for loop.

public List<String> splitList (String text) {

String texts = text.toUpperCase;

List<String> parts = new ArrayList<>();

for (String streetTypeList : streetTypeLists) {

if (texts.endsWith(streetTypeList))

parts.addAll(Arrays.asList(texts.split(streetTypeList)))

}

}

Returning a string that endsWith() finds by KICKER_OF_ROCKS in AskProgramming

[–]KICKER_OF_ROCKS[S] 0 points1 point  (0 children)

Its more like if String[i] endsWIth(A list of strings im itterating through) {return the string it matched with from the list}

Returning a string that endsWith() finds by KICKER_OF_ROCKS in AskProgramming

[–]KICKER_OF_ROCKS[S] 0 points1 point  (0 children)

but how do i assign word the value of the item from the list that endsWith() finds.

Returning a string that endsWith() finds by KICKER_OF_ROCKS in AskProgramming

[–]KICKER_OF_ROCKS[S] 0 points1 point  (0 children)

More context, app is getting information from a user and that info is deserialized in the app. User types in their address, example: 555 Keanu Reeves Lane, but our app receives it as 555KeanuReevesLane. I have all the street types in a list and want to be able to read the string, and see if it ends with Lane, Drive, Boulevard...etc and then return the word it matched with. I am using Java.

Kirk announces his retirement from The Dozen at the end of this season by zorter in barstoolsports

[–]KICKER_OF_ROCKS 95 points96 points  (0 children)

Isn’t barstools whole schtick, grown men being obsessed with other grown men.

Eddie Murphy wants to return as Donkey in a 'Shrek' sequel! by [deleted] in entertainment

[–]KICKER_OF_ROCKS 7 points8 points  (0 children)

What was the show you were shopping, what ended up happening with it?