Sponsored Content
Top Forums Programming RegEx find numbers above 25000 Post 303018264 by RudiC on Friday 1st of June 2018 12:04:24 PM
Old 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

Find with RegEx

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

AWK regex to find only numbers

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

Regex in find command

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

Find regex

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

find regex and remove #

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

regex help with 'find'

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

find -regex option

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

Regex/egrep matching numbers in brackets

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

what's wrong with my regex using find

#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

Regex - Return numbers of exactly 8 digits

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
Padre::Plugin::Moose(3pm)				User Contributed Perl Documentation				 Padre::Plugin::Moose(3pm)

NAME
Padre::Plugin::Moose - Moose, Mouse and MooseX::Declare support for Padre SYNOPSIS
cpan Padre::Plugin::Moose Then use it via Padre, The Perl IDE. Press F8. DESCRIPTION
Once you enable this Plugin under Padre, you'll get a brand new menu with the following options: Moose Assistant Opens up a user-friendly dialog where you can add classes, roles and their members. The dialog contains a tree view of created class and role elements and a preview of the generated Perl code. It also contains links to Moose online references. Moose Preferences Provides the ability to change the operation type (Moose, Mouse or MooseX::Declare) and toggle the usage of namespace::clean, comments and sample usage code generation. Keyword Syntax Highlighting Moose/Mouse and MooseX::Declare keywords are highlighted automatically in any Perl document. The operation type determines what to highlight. BUGS
Please report any bugs or feature requests to "bug-padre-plugin-moose at rt.cpan.org", or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Padre-Plugin-Moose <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Padre-Plugin-Moose>. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes. SUPPORT
You can find documentation for this module with the perldoc command. perldoc Padre::Plugin::Moose You can also look for information at: o RT: CPAN's request tracker http://rt.cpan.org/NoAuth/Bugs.html?Dist=Padre-Plugin-Moose <http://rt.cpan.org/NoAuth/Bugs.html?Dist=Padre-Plugin-Moose> o AnnoCPAN: Annotated CPAN documentation http://annocpan.org/dist/Padre-Plugin-Moose <http://annocpan.org/dist/Padre-Plugin-Moose> o CPAN Ratings http://cpanratings.perl.org/d/Padre-Plugin-Moose <http://cpanratings.perl.org/d/Padre-Plugin-Moose> o Search CPAN http://search.cpan.org/dist/Padre-Plugin-Moose/ <http://search.cpan.org/dist/Padre-Plugin-Moose/> SEE ALSO
Moose, Padre AUTHORS
Ahmad M. Zawawi <ahmad.zawawi@gmail.com> CONTRIBUTORS
Adam Kennedy <adamk@cpan.org> Kevin Dawson <bowtie@cpan.org> COPYRIGHT AND LICENSE
This software is copyright (c) 2012 by Ahmad M. Zawawi This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. perl v5.14.2 2012-03-15 Padre::Plugin::Moose(3pm)
All times are GMT -4. The time now is 11:42 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy