Snippet: Cleaning Read Codes

Date posted: Post reading time: 1 minute or less

Simple Regex for cleaning up Read Codes (Read v2 or CTV3). Does no validation, removes trailing dots and local modifications.

^(.+?)(?:\.+\d*|\.*\-\d+)?$

Regular expression visualization