HI Monks

im new to perl and trying to write regex for following

Table of content

1)Introduction

a)perl?

I)It's Free

II)What Is Perl Used For?

b)Windows, UNIX, and Other Oper (3) ating Systems

I)The Prompt

c)What Do I Need To Use This (X) Book?

I)How Do I Get Perl?

II)How To Get Help

III)Perl Resources (a) ksdjfg

IV)hdjsa

X)jdfse

2)Chapter 1: First Steps In Perl

a)Programming Languages

I)Interpreted vs. Compiled Source Code

II)Libraries, Modules and Packages

b)Why is Perl Such A Great Language?

I)It's Really Easy

II)Flexibility Is Our Watchword

III)Perl on the Web

i am doing to extract the each similar index like all 1),2) and a),b),c) and I),II),III)

can anyone will help me how to write regex for this..


In reply to regular expression by Mjpaddy

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.