06-01-2018
No surprise, as with [5-9] in the second place you suppress e.g. the "4" in 34000. Try this BRE
\(2[5-9]\|[2-9][0-9]\)[0-9]\{3\}\|[1-9][0-9]\{5\}
For your other problem, try \b\(1[0-9]\|2[0-4]\)[0-9]\{3\}\b. Not sure if your regex engine accepts the \b word boundary designator.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have some files in unix
ls -1
TMH.backend.tar.421E-03.Z
TMH.backend.tar.421E-04.Z
TMH.backend.tar.421E-05.Z
TMH.backend.tar.421E-06.Z
TMH.backend.tar.421E-07.Z
TMH.backend.tar.421E-08.Z
TMH.backend.tar.421E-08.Z.bak20081223164844
TMH.backend.tar.421E-09.Z... (1 Reply)
Discussion started by: on9west
1 Replies
2. Shell Programming and Scripting
Hi guys
I need to find both negative and positive numbers from the following text file. And i also dont need 0.
0
8
-7
-2268
007
-07
-00
-0a0
0a0
-07a0
7a00
0a0
Can someone please give a regex to filter out the values in red. I tried a few things in awk but it didnt work... (9 Replies)
Discussion started by: sridanu
9 Replies
3. UNIX for Dummies Questions & Answers
Hi,
I need to find out the files whcih contains date in YYYYMMDD in their name.
I don't know if I can use regex in side find.
Now I am using commad for the same purpose which is not full proof.
find . -name "**" -print
But I want then It should contain at lease 8 digit in their... (3 Replies)
Discussion started by: siba.s.nayak
3 Replies
4. Shell Programming and Scripting
Hi There,
Can anybody help me out for searching this regular expression?
xxxxx.yyy.zzzz.From-ABCD.To-XYZ.xxxxxx
I would like the ID1 and ID2 (knowing which one is Id1 and id2)
.From-<ID1>.
and
.To-<ID2>.
Thanks in advance!!
Regards,
Bhaskar (4 Replies)
Discussion started by: bhaskar_m
4 Replies
5. Shell Programming and Scripting
hi ,
how do i remove # from a line where i found regex..
don't need to remove all the line.. only remove comment.. (3 Replies)
Discussion started by: Poki
3 Replies
6. Shell Programming and Scripting
How to do alternation using regular expressions in the 'find' command? Like say you want to find all files that do not match the names specifically "this" or "that" within a directory using regular expressions? (10 Replies)
Discussion started by: stevensw
10 Replies
7. Shell Programming and Scripting
I'm trying to use regular expression arguments as variables. I have to surround the regular expression with double quotes or else it automatically expands that regular expression to whatever is in that directory.
Unfortunately when I run 'find' it further surrounds the double quotes with single... (6 Replies)
Discussion started by: stevensw
6 Replies
8. Shell Programming and Scripting
Experts:
I don't know that regular expressions will ever be easy for me, so if one of you guru's could help out, I'd appreciate it.
I'm trying to match a line in our syslog, but I can't figure out how to match a number inside a bracket. This is what I'm trying to match.
"Jul 16 00:01:34... (2 Replies)
Discussion started by: jdveencamp
2 Replies
9. Shell Programming and Scripting
#ls json-*
json-lexer.c json-lexer.h json-parser.c json-parser.h json-streamer.c json-streamer.h
#find . -regex '^(json-)+.'
return nothing (3 Replies)
Discussion started by: yanglei_fage
3 Replies
10. Shell Programming and Scripting
Hi All
I am new to this forum and also regex.
I am using bash scripting and have a file like this
"0012","efgh","12345678","adfdf", "36598745"
"87654321","hijk","lmno"
I want the ouput to be
12345678
36598745
87654321
Criteria like this
- number
- 8 carachters long
Please let... (21 Replies)
Discussion started by: buttseire
21 Replies
LEARN ABOUT DEBIAN
ods-timing
ods-timing(5) OpenDNSSEC timinig ods-timing(5)
NAME
ods-timing - OpenDNSSEC timing specification
SYNOPSIS
/etc/opendnssec/conf.xml
/etc/opendnssec/kasp.xml
/etc/opendnssec/zonelist.xml
DESCRIPTION
The configuration files of OpenDNSSEC need to have timing descriptions, notably for periods. These descriptions follow ISO 8601 with
exceptions for the duration of a month and a year, as these periods would be allowed to vary if ISO 8601 were strictly adhered to.
Durations are represented by the format P[n]Y[n]M[n]DT[n]H[n]M[n]S. In these representations, the [n] is replaced by the value for each of
the date and time elements that follow the [n]. Leading zeros are not required. The capital letters P, Y, M, W, D, T, H, M and S are desig-
nators for each of the date and time elements and are not replaced
P is the duration designator (historically called "period") placed at the start of the duration representation.
Y is the year designator that follows the value for the number of years.
M is the month designator that follows the value for the number of months.
W is the week designator that follows the value for the number of weeks.
D is the day designator that follows the value for the number of days.
T is the time designator that precedes the time components of the representation.
H is the hour designator that follows the value for the number of hours.
M is the minute designator that follows the value for the number of minutes.
S is the second designator that follows the value for the number of seconds.
For example, P3Y6M4DT12H30M5S represents a duration of "three years, six months, four days, twelve hours, thirty minutes, and five sec-
onds". Date and time elements including their designator may be omitted if their value is zero, and lower order elements may also be omit-
ted for reduced precision. For example, P23DT23H and P4Y are both acceptable duration representations.
EXCEPTION
A year or month vary in duration depending on the current date. For OpenDNSSEC, we assume fixed values
One month
is assumed to be 31 days.
One year
is assumed to be 365 days.
This exception may or may not change in future releases of OpenDNSSEC. The reason for making this exception is to avoid complicating this
software in a way that may not meet any practical need.
SEE ALSO
ods-auditor(1), ods-control(8), ods-enforcerd(8), ods-hsmspeed(1), ods-hsmutil(1), ods-kaspcheck(1), ods-ksmutil(1), ods-signer(8),
ods-signerd(8), opendnssec(7), ISO 8601, http://www.opendnssec.org/
AUTHORS
OpenDNSSEC was made by the OpenDNSSEC project, to be found on http://www.opendnssec.org/
OpenDNSSEC February 2010 ods-timing(5)