Note that there are some explanatory texts on larger screens.

plurals
  1. POParse HTML or Plain Text File and return the text delimited by a string
    text
    copied!<p>I need help in parsing a text file. This text file has a few html tags in it. What I am looking for is a Solution (Either in PHP or JS or both) which will strip all these, and store the output into separate variables.</p> <pre><code> Integration/QA &lt;http://shopfloor/sfweb/secure/CancelOrders&gt; Development &lt;http://shopfloor/sfweb/secure/CancelOrders&gt; ------------------------------------------------------------------------ *HEADER INFO* *View Object:* 6541997 *BPO:* 0020064484 *Ack Date:* 2012-05-25 *Operation(s):* PS_Queue, PS_BoxAll, JPN_End ------------------------------------------------------------------------ *EXTERNAL ORDER NUMBER REFERENCE* *SAP Sales Order Number* *Customer P.O. Number* *Legacy Order Number* 0310407774 89FC37763001 ------------------------------------------------------------------------ *PRODUCTS FOR THIS WORK OBJECT/OPERATION(S)* *PL* *Product #* *Qty* *Options* *Serial #* LN AE241A 1 ------------------------------------------------------------------------ *Station Info* *Start Station:* JPN_End *Location:* Done *Station:* *Birth Date/Time:* 2012-05-22 08:26:17 SGT *Power Cord:* *Voltage:* ------------------------------------------------------------------------ *MATERIAL LIST FOR THIS WORK OBJECT/OPERATION(S)* *Part Number* *Qty* *Description* *BB Type* *Material Location* *Serial Number* AE241-90001 1 XP Remote Support Service Leaflet BOM PACK Privacy Statement </code></pre> <p></p> <p>I basically Want to strip a few text from this code into php variables, so it will return:</p> <pre><code>$viewobject = "6541997" $BPO = "0020064484" $ackdate = "2012-05-25" $operations = "PS_Queue, PS_BoxAll, JPN_End" $sapSO = "0310407774" $legacyON = "89FC37763001" $pl = "LN" $product = "AE241A" $qty = 1; $startstn = "JPN_end" $location = "Done" $bdate = "PS_Queue, PS_BoxAll, JPN_End" $pn = "AE241-90001" $qty = 1; $description =" XP Remote Support Service Leaflet"; </code></pre> <p>and the like. Is this possible?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload