Name: Anonymous 2012-10-11 22:50
I want to do a regex operation on datafiles to convert decimals to Roman numerals.
I wanted to do something like
str_replace_all("blahblah02 blahblahblah03 blahblahbla05", "([0-9]{2})", convertToRomanNumeral("\\1"))
however, this replacement doesn't work...as in, the third parameter should be a string and i have given it a function
How am I supposed to do this?
I wanted to do something like
str_replace_all("blahblah02 blahblahblah03 blahblahbla05", "([0-9]{2})", convertToRomanNumeral("\\1"))
however, this replacement doesn't work...as in, the third parameter should be a string and i have given it a function
How am I supposed to do this?