Jump to content

Recommended Posts

Posted

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

 

Posted (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 by FrancescoDiMuro

Click here to see my signature:

Spoiler

ALWAYS GOOD TO READ:

 

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...