i am trying to get number from string using this code :
#include <IE.au3> $oIE = _IEAttach ("Edu.corner") Local $aName = "Student name & Code:", $iaName = "0" Local $oTds = _IETagNameGetCollection($oIE, "td") For $oTd In $oTds If $oTd.InnerText = $aName Then $iaName = $oTd.NextElementSibling.InnerText $iGet = StringRegExpReplace($iaName, "\D", "") EndIf Next MsgBox(0, "", $iGet) it was get number like 52503058
But, I want to get only student code 5250. (Different student have different code, sometime its 3 digits, Sometime 4)
Hi guys I need your help.
I have string like this : "TDM111A5, RCT222Y5/ 7 ; FDT444E4 /8 , ABC222R5"
I need find a coma or semicolon and delete white spaces before and after them
The output should be a string and/or array
String : "TDM111A5,RCT222Y5/ 7;FDT444E4 /8,ABC222R5"
I need some help to parse the Green highlighted value with from below text:
RESISTOR THICK FILM 4.64K ±1% 1/4W ±100PPM/°C 1206 SMT
RESISTOR THICK FILM 3.83K ±1% 1/4W ±100PPM/°C 1206 SMT
RESISTOR CARBON FILM 22K ±10% 1/2W AXIAL THT
RESISTOR WIREWOUND 22 ±5% 3W ±30PPM/°C AXIAL THT
RESISTOR METAL OXIDE 4.7K ±5% 2 W ±300PPM/°C AXIAL THT
RESISTOR THICK FILM 0 1/8W 0805 SMT
I am using positive look behind.:
(?<=FILM|WOUND|OXIDE).+ Can only pull this off:
4.64K ±1% 1/4W ±100PPM/°C 1206 SMT 3.83K ±1% 1/4W ±100PPM/°C 1206 SMT 22K ±10% 1/2W AXIAL THT 22 ±5% 3W ±30PPM/°C AXIAL THT 4.7K ±5% 2 W ±300PPM/°C AXIAL THT 0 1/8W 0805 SMT I'm trying the \b word boundary to no avail at this point. Appreciate if anyone would guide me on this?