Jump to content

programming logic help plz


usauae

Recommended Posts

9 minutes ago, usauae said:

I have a list of strings that are always 4 characters  {'a001', 'aa01', 'aaa1', 'aaaa' }

I need to select only the ones that are  alph num num num ex: 'a001'

any ideas ?

You can ask chatGPT :)

Link to comment
Share on other sites

try this regex - ^[a-z]{1}[0-9]{3}$  (any a to z 1 char and followed by  3 numbers)  

 

all you need to do is , loop through your words and apply this regex on your string , if it matches return that or add to your results list 

Link to comment
Share on other sites

Just now, MiryalgudaMaruthiRao said:

@dasari4kntr uncle springboot start cheddam anukuntunna

I have some projects in mind as well

ela ekkada start cheyyali

first intellij community edition download chesuko...

next have this spring initilizer for boiler plate... https://start.spring.io/

try to create simple api...many youtube videos are ther...follow them...

Link to comment
Share on other sites

2 minutes ago, MiryalgudaMaruthiRao said:

step 2 deniki uncle

boiler plate...it will generate strucuture for your spring boot project...contains pom.xml and main method...etc

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...