Removing a hyphen from a zip code #379
-
Hi all I'm struggling with a removal I'm trying to make. What I'm hoping to achieve is to remove dashes from nine digit zip codes (and only zip codes to preserve other address elements) so for example "28273-6901" should be changed to "282736901" but "86-502" should not be changed. While I'm not familiar I've gotten as far with the regex as to recognize zip code format with "^(\d{5})(-)(\d{4})$", but I'm not sure how to output in FoxReplace the same text without the hyphen. Is this something that can be achieved and if so could anyone please give me some guidance? Thank you Edit: My mistake. I'd missed some of the documentation and reading through the MDN I saw where I was having trouble. Simple version of what I needed to do was use the function (match, p1 + p3) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Resolved in edit |
Beta Was this translation helpful? Give feedback.
Resolved in edit