Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8515033
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T05:01:50+00:00 2026-06-11T05:01:50+00:00

This code: use strict; use warnings; use YAPE::Regex::Explain; print YAPE::Regex::Explain->new( qr/d+/ )->explain(); prints The

  • 0

This code:

use strict;
use warnings;
use YAPE::Regex::Explain;
print YAPE::Regex::Explain->new( qr/d+/ )->explain();

prints

The regular expression:

(?-imsx:d+)

matches as follows:
  
NODE                     EXPLANATION
----------------------------------------------------------------------
(?-imsx:                 group, but do not capture (case-sensitive)
                         (with ^ and $ matching normally) (with . not
                         matching \n) (matching whitespace and #
                         normally):
----------------------------------------------------------------------
  d+                       'd' (1 or more times (matching the most
                           amount possible))
----------------------------------------------------------------------
)                        end of grouping
----------------------------------------------------------------------

but this code

use 5.014;  #added this
use strict;
use warnings;
use YAPE::Regex::Explain;
print YAPE::Regex::Explain->new( qr/d+/ )->explain();

prints only:

The regular expression:



matches as follows:
  
NODE                     EXPLANATION
----------------------------------------------------------------------

What’s wrong?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T05:01:56+00:00Added an answer on June 11, 2026 at 5:01 am

    Feature unicode_strings changes which pattern gets created.

    $ perl -le'no  feature qw( unicode_strings ); print qr/\d+/'
    (?^:\d+)
    
    $ perl -le'use feature qw( unicode_strings ); print qr/\d+/'
    (?^u:\d+)
    

    YAPE::Regex::Explain can’t handle many new (and not so new) features due to lack of maintenance. This is documented in the LIMITATIONS section.

    I bet it gets the flags using re::regexp_pattern (explaining why it displays (?-imsx:d+) instead of (?^:\d+)), and chokes on the “u” flag it doesn’t know about.

    $ perl -le'no  feature qw( unicode_strings ); print +(re::regexp_pattern(qr/\d+/))[1]'
    
    
    $ perl -le'use feature qw( unicode_strings ); print +(re::regexp_pattern(qr/\d+/))[1]'
    u
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This code triggers the complaint below: #!/usr/bin/perl use strict; use warnings; my $s =
My code: use strict; use warnings; my $seq = ATGGT[TGA]G[TA]GC; print The sequences is
This is the perl code ... use strict; use warnings; use LWP::UserAgent; use HTTP::Date;
I need some Perl regular expression help. The following snippet of code: use strict;
I have this code use strict; use warnings; my %hash; $hash{'1'}= {'Make' => 'Toyota','Color'
I have this code which works. #!/usr/bin/perl use warnings; use strict; use Net::LDAP; use
Given this code: #!/usr/bin/perl -w use strict; use warnings; sub foo { return wantarray
In this code snippet: use strict; use warnings; use Data::Dumper; my $r = [qw(testing
Running this code parsesendnotes.pl #!/usr/bin/perl use strict; use warnings; use Device::SerialPort; use Time::HiRes qw(usleep);
Trying to use this code to connect the AD PrincipalContext context = new PrincipalContext(ContextType.Domain,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.