Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Perl
Perl Misc
How to do this job with regular expression
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
Reply to thread
Message
[QUOTE="Josef Moellers, post: 4778326"] You probably mean "letter" rather than "word", as there are no two identical words in that line. The keyword you are looking for is "backreference", e.g. $a =~ /(.)\1\1\1/; matches 4 identical anythings in $a. You can put more complex patterns between the parentheses if you desire. [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Perl
Perl Misc
How to do this job with regular expression
Top