Python Forum
Using re to find only uppercase letters
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Using re to find only uppercase letters
#4
(May-27-2021, 06:53 PM)perfringo Wrote: What is exact meaning of 'find a string with the letters ATGC only in uppercase'. Does it mean 'determine whether line contains word constructed only from letters ATGC in any combination'? Or same applied to the whole file? And finally - do you have to use re? Line #2 in your code reminds me one old programmering joke: regex in plural is regrets.

It means that one of the letters(ATGC - just one) appears in columns 4 and 5
and yes, sadly I have to use regex
Reply


Messages In This Thread
RE: Using re to find only uppercase letters - by ranbarr - May-28-2021, 12:48 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Uppercase problem MarcJuegos_YT 4 2,698 Aug-21-2020, 02:16 PM
Last Post: MarcJuegos_YT
  Check if string is uppercase or lowercase and eliminate Wolfpack2605 1 4,821 Jan-01-2018, 05:03 AM
Last Post: Mekire

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020