Skip to main content

Timeline for How to replace numbers in a string?

Current License: CC BY-SA 4.0

14 events
when toggle format what by license comment
Sep 15, 2018 at 11:21 history edited Αλέξανδρος Ζεγγ CC BY-SA 4.0
added 122 characters in body
Sep 15, 2018 at 11:11 comment added Αλέξανδρος Ζεγγ @yode Great! This is it! I succeeded in using regex for string patterns but somewhat unwell at padding 0s to integers.
Sep 15, 2018 at 11:06 comment added yode StringReplace[string, x : RegularExpression["\\d*[02468](?=\\.)"] :> IntegerString[ToExpression[x] + 2, 10, 6]] is more concise..
Sep 15, 2018 at 10:39 vote accept yode
Sep 15, 2018 at 5:57 comment added Αλέξανδρος Ζεγγ @CarlWoll I think I am just developing a functionality yode did not ask of.
Sep 15, 2018 at 5:19 comment added Αλέξανδρος Ζεγγ @CarlWoll How about now then?
Sep 15, 2018 at 5:19 history edited Αλέξανδρος Ζεγγ CC BY-SA 4.0
added 37 characters in body
Sep 15, 2018 at 5:17 comment added Αλέξανδρος Ζεγγ @CarlWoll ah, your are right
Sep 15, 2018 at 5:14 comment added Carl Woll Now it doesn't work for "E:\\job\\a\\000998.png".
Sep 15, 2018 at 5:11 comment added Αλέξανδρος Ζεγγ @CarlWoll How about now?
Sep 15, 2018 at 5:11 history edited Αλέξανδρος Ζεγγ CC BY-SA 4.0
added 3 characters in body
Sep 15, 2018 at 5:08 comment added Carl Woll Doesn't work for "E:\\job\\a\\000298.png".
Sep 15, 2018 at 5:05 history edited Αλέξανδρος Ζεγγ CC BY-SA 4.0
added 64 characters in body
Sep 15, 2018 at 4:54 history answered Αλέξανδρος Ζεγγ CC BY-SA 4.0