faustf Posted March 15, 2019 Posted March 15, 2019 hi guys anyone can help me to match a number? i have this part of page -->€ <!-- /react-text --><!-- react-text: 2351 -->135.000<!-- /react-text --><span><!-- and i tryed to use this € .+?-->([0-9]+)<!-- i want only match 135000 how is possible ? thankz
FrancescoDiMuro Posted March 15, 2019 Posted March 15, 2019 (edited) @faustf #include <Array.au3> #include <StringConstants.au3> Global $strString = "-->€ <!-- /react-text --><!-- react-text: 2351 -->135.000<!-- /react-text --><span><!--", _ $arrResult $arrResult = StringRegExp($strString, '(?<=\-\->)(\d+\.?\d*)(?=<!\-\-)', $STR_REGEXPARRAYMATCH) If IsArray($arrResult) Then _ArrayDisplay($arrResult) Edited March 15, 2019 by FrancescoDiMuro Click here to see my signature: Spoiler ALWAYS GOOD TO READ: Forum Rules Forum Etiquette
Nine Posted March 15, 2019 Posted March 15, 2019 ": \d+ -->(\d+\.\d+)" would also work “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Debug Messages Monitor UDF Screen Scraping Round Corner GUI UDF Multi-Threading Made Easy Interface Object based on Tag
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now