# Variable length parsing box

**URL:** <https://forum.inductiveautomation.com/t/variable-length-parsing-box/10807>\
**Category:** Ignition\
**Created:** [November 19, 2015, 4:47am UTC](https://forum.inductiveautomation.com/t/variable-length-parsing-box/10807 "2015-11-19T04:47:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jenko](https://avatars.discourse-cdn.com/v4/letter/j/2acd7d/32.png) [@Jenko](https://forum.inductiveautomation.com/u/Jenko)\
**Post date:** [November 19, 2015, 4:47am UTC](https://forum.inductiveautomation.com/t/variable-length-parsing-box/10807/1 "2015-11-19T04:47:11Z")

</div>

I have a project where a piece of lab equipment generates a HTML file every time the analysis runs. I’ve used the Instrument Interface module to parse the BatchCode information, however it isn’t a fixed length and I don’t know how to parse a value that has a dynamic number of characters.

The BatchCode I need is located in-between

 and characters and always starts in the same spot, is there any way I could use these to limit the parsing box length?

Thanks

Dan

---

<div class="post-metadata">

**Author:** ![dsarnes](https://avatars.discourse-cdn.com/v4/letter/d/74df32/32.png) [@dsarnes](https://forum.inductiveautomation.com/u/dsarnes)\
**Post date:** [December 8, 2015, 9:12pm UTC](https://forum.inductiveautomation.com/t/variable-length-parsing-box/10807/2 "2015-12-08T21:12:06Z")

</div>

Can you give an example of the string to parse from?

---

<div class="post-metadata">

**Author:** ![nmudge](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nmudge/32/3394_2.png) [@nmudge](https://forum.inductiveautomation.com/u/nmudge)\
**Post date:** [December 8, 2015, 10:46pm UTC](https://forum.inductiveautomation.com/t/variable-length-parsing-box/10807/3 "2015-12-08T22:46:37Z")

</div>

Python can be used to easily parse and HTML file. Can you paste in the HTML file and show what you need from it?
