Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > ?-xism:

Reply
Thread Tools

?-xism:

 
 
fishfry
Guest
Posts: n/a
 
      02-05-2004
The statement

print qr/abc/;

produces the output

(?-xism:abc)

I looked in man perlop and didn't find a clear description of what this
means. Where's this documented? What's it mean?
 
Reply With Quote
 
 
 
 
David K. Wall
Guest
Posts: n/a
 
      02-05-2004
fishfry <> wrote:

> The statement
>
> print qr/abc/;
>
> produces the output
>
> (?-xism:abc)
>
> I looked in man perlop and didn't find a clear description of what this
> means. Where's this documented? What's it mean?


Try perlre instead.

"(?imsx-imsx)"
One or more embedded pattern-match modifiers, to be turned on
(or turned off, if preceded by "-") for the remainder of the
pattern or the remainder of the enclosing pattern group (if
any). This is particularly useful for dynamic patterns, such
...

--
David Wall
 
Reply With Quote
 
 
 
 
gnari
Guest
Posts: n/a
 
      02-05-2004
"fishfry" <> wrote in message
news:BLOCKSPAMfishfry-...
> The statement
>
> print qr/abc/;
>
> produces the output
>
> (?-xism:abc)
>
> I looked in man perlop and didn't find a clear description of what this
> means. Where's this documented? What's it mean?


try perlre

gnari



 
Reply With Quote
 
Andy Hassall
Guest
Posts: n/a
 
      02-07-2004
On Thu, 05 Feb 2004 22:05:39 GMT, fishfry <>
wrote:

>The statement
>
> print qr/abc/;
>
>produces the output
>
>(?-xism:abc)
>
>I looked in man perlop and didn't find a clear description of what this
>means. Where's this documented? What's it mean?


perldoc perlre



See also module YAPE::Regex::Explain
<http://theoryx5.uwinnipeg.ca/CPAN/data/YAPE-Regex-Explain/Explain.html>

... which says:

The regular expression:

(?-imsx:abc)

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):
----------------------------------------------------------------------
abc 'abc'
----------------------------------------------------------------------
) end of grouping
----------------------------------------------------------------------

--
Andy Hassall <> / Space: disk usage analysis tool
<http://www.andyh.co.uk> / <http://www.andyhsoftware.co.uk/space>
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off




Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57