Feb 10, 2009 #1 NullTerminator Programmer Joined Oct 13, 1998 Messages 293 Location US I can't seem to get [0-9]{6,6} to match anything \d\d\d\d\d\d won't match either. Is the regex in gawk somewhat weak?
I can't seem to get [0-9]{6,6} to match anything \d\d\d\d\d\d won't match either. Is the regex in gawk somewhat weak?
Feb 10, 2009 1 #2 moonring Technical User Joined Feb 15, 2008 Messages 38 Location US Use --posix or --re-interval switch: Code: gawk --posix '/[0-9]{6}/' file Upvote 0 Downvote