Copy paste HTML

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
dio695
Posts: 1
Joined: 16 May 2022, 02:16

Copy paste HTML

Post by dio695 » 16 May 2022, 02:34

Code: Select all

<table id="dataList" class="table table-hover-list table-list">
							<thead class="head-pl" style="">
								<tr>
									<th scope="col" class="align-right"> Amount </th>

								</tr>
							</thead>
							<tbody><tr>	<td colspan="9" align="center">Total</td>	<td align="right">165.00</td><td scope="col"></td></tr></tbody>
						</table>
i need copy 165.00
to my word
anyone help?

Rohwedder
Posts: 7630
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: Copy paste HTML

Post by Rohwedder » 16 May 2022, 03:13

Hallo,
try:

Code: Select all

ClipBoard =
(
<table id="dataList" class="table table-hover-list table-list">
							<thead class="head-pl" style="">
								<tr>
									<th scope="col" class="align-right"> Amount </th>

								</tr>
							</thead>
							<tbody><tr>	<td colspan="9" align="center">Total</td>	<td align="right">165.00</td><td scope="col"></td></tr></tbody>
						</table>
)
RegExMatch(ClipBoard, "(?<=""right"">)([0-9.]*)", N)
MsgBox,% N1

Post Reply

Return to “Ask for Help (v1)”