Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Re: Matching indented paragraph numbering with regexps

by Crian (Curate)
on Apr 01, 2004 at 13:43 UTC ( [id://341618]=note: print w/replies, xml ) Need Help??


in reply to Re: Matching indented paragraph numbering with regexps
in thread Matching indented paragraph numbering with regexps

You could restrict the numerals to be the first not-whitespace on a line and have to end with a point.

But nevertheless you could do a failure, perhaps if the fifth sub point ends with the word "vi." in a single line:

iv. ...emacs ....
v. ......... ends width the word
vi.
vi. ....
vii ....

But with this restrictions it's even harder to fail. Additional you could try to stepp back, if you find double numerals. But even that does not help if the point v. in the example above was the last one.

I think the "right" solution depends much on your data and the demands at (to?) your program.
  • Comment on Re: Re: Matching indented paragraph numbering with regexps

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://341618]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (7)
As of 2024-04-23 17:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found