Search
 
SCRIPT & CODE EXAMPLE
 

C

Regex to match any character being repeated more than 10 times

#!perl
use warnings;
use strict;
my $regex = qr/(.)1{9,}/;
print "NO" if "abcdefghijklmno" =~ $regex;
print "YES" if "------------------------" =~ $regex;
print "YES" if "========================" =~ $regex;

#Although the above test script is in Perl, 
#this is very standard regex syntax and should work in any language. 
#In some variants you might need to use more backslashes, 
#e.g. Emacs would make you write (.)1{9,} here.
Comment

PREVIOUS NEXT
Code Example
C :: how to declare a struct in c 
C :: how to take input in c 
C :: c malloc 
C :: north austin weather 
C :: ecto where is not nil 
C :: national festivals of india in hindi 
C :: c for result 
C :: Number 10 
C :: how to check file pointers in c 
C :: parcel-builder put image in sub folder 
C :: how tier lists work 
C :: semicolong after for() loop stackoverflow 
C :: Talk about the difference between call by reference and call by value and in C language with example? 
C :: convert calendar time to epoch in c programming 
C :: how to make C program blink on screen 
C :: minimun number of moves in c 
C :: disable gnu++11 option 
C :: c++ to assembly language converter online 
C :: Reverse every Word of given String 
C :: determination data type in c 
C :: get multiple c 
C :: maximum, minimum, mean, and median of the data set. in array c programming 
C :: why return 0 is written at the code end? 
C :: c printf affichage 
C :: how to declare 3dimensional arrays in wiring 
C :: in C char to string 
C :: website how to solve c programming questions 
Dart :: flutter appbar remove debug 
Dart :: flutter textfield label align top 
Dart :: bad state insecure http is not allowed flutter 
ADD CONTENT
Topic
Content
Source link
Name
5+7 =