in reply to Re^3: read/write delete duplicates/sort PROBLEM! - Use of uninitialized value in sprintf
in thread read/write delete duplicates/sort PROBLEM! - Use of uninitialized value in sprintf
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...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: read/write delete duplicates/sort PROBLEM! - Use of uninitialized value in sprintf
by haukex (Archbishop) on Oct 18, 2021 at 18:10 UTC | |
by afoken (Chancellor) on Oct 18, 2021 at 18:27 UTC | |
|
Re^5: read/write delete duplicates/sort PROBLEM! - Use of uninitialized value in sprintf
by bliako (Abbot) on Oct 18, 2021 at 18:45 UTC |