- 0
Modify linking tags after analyzing some data in a file?
-
Recently Browsing 0 members
- No registered users viewing this page.
-
Similar Content
-
Learn AutoCAD Programming with this Certification Bundle for just $29.99
By News Staff,
- neowin deals
- autocad
- (and 9 more)
- 0 replies
- 9 views
-
- 1 answer
- 5,499 views
-
- 8 answers
- 4,743 views
-
- 1 answer
- 9,068 views
-
- 2 answers
- 6,563 views
-
Question
Amen_
I want to make a program which will look for a expression <disp-formula id="deqn(\d+)-(\d+)"> in files and if there is one or more match, then it will search the whole file for expressions in the form <xref ref-type="disp-formula" rid="deqnX">(X)</xref> or <xref ref-type="disp-formula" rid="deqnX">X</xref> where X ranges from the first (\d+) to the last (\d+) and replace it to <xref ref-type="disp-formula" rid="deqn$1-$2">(X)</xref> or <xref ref-type="disp-formula" rid="deqn$1-$2">X</xref>. I've written a portion of the code and I'm stuck
Can anybody help me on this? I've also attached one input sample and one desired output file to the post.
Link to comment
https://www.neowin.net/forum/topic/1307266-modify-linking-tags-after-analyzing-some-data-in-a-file/Share on other sites
1 answer to this question
Recommended Posts