This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 1. Take any string such as this regex \v<[1-9]\d{,2}\ze(\d{3})*> | |
# 2. Indicate separations with a delimiter char like underscore | |
# 3. Run awk like so: | |
# | |
# awk -v RS='_' -f {thisfile} <<< '\v_<_[1-9]_\d_{,2}_\ze_(_\d_{3}_)_*_>' | |
# Result: | |
# \v<[1-9]\d{,2}\ze(\d{3})*> | |
# \v # |