ok - now I understand. I'm thinking this is going to get a little complicated with the possible differences in the @ID values. It may or may not have parenthesis. Could have only closing parenthesis, so it has to be able to match all different occurrences.
I tried adding in opening/closing parenthesis and it still won't match. I'm not a REGEX expert.
if ( $tag =~ m/<endnote id=((\d*)([[:alpha:]]*))>/ ) {
Input could be:
<endnote id=(1)>Text...</endnote> <endnote id=(2)>Text...</endnote> <endnote id=1)>Text...</endnote> <endnote id=2)>Text...</endnote> <endnote id=1.>Text...</endnote> <endnote id=2.>Text...</endnote> <endnote id=1a>Text...</endnote> <endnote id=2cb>Text...</endnote> <endnote id=a.1>Text...</endnote> <endnote id=a.2>Text...</endnote> etc...
In reply to Re^4: read/write delete duplicates/sort PROBLEM! - Use of uninitialized value in sprintf
by VladP
in thread read/write delete duplicates/sort PROBLEM! - Use of uninitialized value in sprintf
by VladP
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |