Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
learning more abput re
#1
i want to learn more about regular expression and the re module. particularly expression substitution. as an exercise, i plan to write a command that can do a mass rename file by providing a match string and substitution as needed.

what are good places to find tutorial type help for this? i have the reference manual, but i'm not learning very well from it.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply
#2
check https://www.regular-expressions.info/ for general and also language specific (not just python) info on regex. I find it useful. Also regex101.com for testing
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply
#3
my project idea had the rug pulled out from under it. a perl command called rename that does this is included in ubuntu.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Forum Jump:

User Panel Messages

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