Change the return value of MatchRegularExpression()

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
AND51
Addict
Addict
Posts: 1040
Joined: Sun Oct 15, 2006 8:56 pm
Location: Germany
Contact:

Change the return value of MatchRegularExpression()

Post by AND51 »

Hello!

It would be quite useful if the returning value of MatchRegularExpression() can be changed.
Not only, *if* there are one or more matches, but please return *how many* matches have been found.

Then this command would be a good alternative to CountString()...
It would be possible to make a CountString supporting match-pattern... :idea:
PB 4.30

Code: Select all

onErrorGoto(?Fred)