zsh/pcre

Jun. 20th, 2006 02:34 pm
ocehb: (Default)
[personal profile] ocehb

# zmodload zsh/pcre
# pcre_compile -i "^\\w+\\s+(\\d+)\\s*\$"
# pcre_study
# pcre_match -a ary "test  2128506"
# print -l $ary
2128506
# [[ "2128506" -pcre-match (?:\\d\\d\\d)[-\\s]*(?:\\d{4}) ]] && \
  print yes
yes
# 

Profile

ocehb: (Default)
ocehb

January 2021

S M T W T F S
     12
345 6789
10111213141516
17181920212223
24252627282930
31      

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Feb. 8th, 2026 05:21 pm
Powered by Dreamwidth Studios