Click here to Skip to main content
15,891,607 members

Comments by LB2371 (Top 30 by date)

LB2371 10-Feb-24 5:33am View    
Your "empirical" solution doesn't work for me: for example, "VII" is replaced by "52" (instead of "7"). See my own solution below.
LB2371 6-Feb-24 13:19pm View    
Where's the "strtr" function in your code?
LB2371 6-Feb-24 2:55am View    
Isn't there a way to treat each roman numeral as a word and do a whole-word replacement? Maybe using "preg_replace" or "preg_replace_callback"?
LB2371 28-Nov-23 9:10am View    
Thanks!
LB2371 26-Nov-23 17:46pm View    
The code has to be exactly as I have it - That's the reason of my question here.