Hi all, Im trying to write a regular expression whereby a decimal is converted into "percentage format". The three scenarios that can happen and that I want changed are for example: 0.01 changed to 1 0.10 changed to 10 0.134 changed to 13.4 Ive started but am a bit stuck now: expression="\A(.*)\.(.*)\Z" expression="\A(\d{2})(:?.*)\Z" Any help please? thanks! ocelot
? Why not just multiply by 100?
There are currently 1 users browsing this thread. (0 members and 1 guests)
Forum Rules
Bookmarks