Python Forum
Trouble with Regex Translator
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Trouble with Regex Translator
#2
I'm guessing it's getting caught by your mapping for 'q' before it gets caught by your mapping for 'qu'. This is the same problem you have been having all along with this code: conflicts between your single character translations and your multiple character translations. I think the best solution would be to separate out all of the multiple character translations. Do them first. Then do the single character translations.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
Reply


Messages In This Thread
Trouble with Regex Translator - by skrivver99 - Dec-15-2018, 01:19 PM
RE: Trouble with Regex Translator - by ichabod801 - Dec-15-2018, 02:39 PM
RE: Trouble with Regex Translator - by skrivver99 - Dec-15-2018, 02:43 PM
RE: Trouble with Regex Translator - by Gribouillis - Dec-15-2018, 03:55 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  (python) Can i get some help fixing a English to Morse translator? Pls AlexPython 7 1,707 Sep-12-2022, 02:55 AM
Last Post: AlexPython
  i want to write symbole as varibales in python to make translator rachidel07 9 3,684 Feb-03-2021, 09:57 PM
Last Post: nilamo
  letter translator (or someting) Obsilion 4 2,562 Apr-28-2020, 12:40 PM
Last Post: deanhystad
  I want to filter out words with one letter in a string (pig latin translator) po0te 1 2,163 Jan-08-2020, 08:02 AM
Last Post: perfringo
  Output discrepancy when building Translator skrivver99 17 6,834 Nov-26-2018, 01:22 AM
Last Post: ichabod801
  Help with pig latin translator DragonG 1 2,322 Nov-01-2018, 03:57 AM
Last Post: ichabod801
  PigLatin Sentence Translator Help 2skywalkers 7 5,957 Jun-23-2018, 12:46 AM
Last Post: 2skywalkers
  Pig Latin Translator RickyWilson 1 3,234 Dec-02-2017, 08:20 AM
Last Post: buran

Forum Jump:

User Panel Messages

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