Home
About
Download
Register
News
Help
Register
Log In
Forums
Scripts & Popups
RegEx help.. Return how many numbers ?
Forums
Active Threads
Search
Who's Online
Help
Print Thread
RegEx help.. Return how many numbers ?
#
75931
20/03/04
04:32 PM
Joined:
Apr 2003
Posts: 413
Moldova
A
Adrenalin
OP
Fjord artisan
OP
Adrenalin
Fjord artisan
A
Joined:
Apr 2003
Posts: 413
Moldova
I need a Regual Expression what return how many numbers is in a string.. String can be like that: a2j5j32h56..
I try some expression.. But didn't work like i want.. Can anyone help me pls ?
Copy Link to Clipboard
Re: RegEx help.. Return how many numbers ?
#
75932
20/03/04
04:49 PM
Joined:
Dec 2002
Posts: 3,015
London, UK
C
Collective
Hoopy frood
Collective
Hoopy frood
C
Joined:
Dec 2002
Posts: 3,015
London, UK
$count(a2j5j32h569,0,1,2,3,4,5,6,7,8,9)
or with regex:
$regex(a2j5j32h569,/\d/g)
I'm not sure which is faster.
Copy Link to Clipboard
Re: RegEx help.. Return how many numbers ?
#
75933
20/03/04
05:47 PM
Joined:
Dec 2002
Posts: 1,893
O
Online
Hoopy frood
Online
Hoopy frood
O
Joined:
Dec 2002
Posts: 1,893
$count is faster, especially when it comes to long strings.
Copy Link to Clipboard
Re: RegEx help.. Return how many numbers ?
#
75934
21/03/04
03:39 PM
Joined:
Apr 2003
Posts: 413
Moldova
A
Adrenalin
OP
Fjord artisan
OP
Adrenalin
Fjord artisan
A
Joined:
Apr 2003
Posts: 413
Moldova
DOoh.. It was easy.. Collective&Online <- Thanks for fast reply
Copy Link to Clipboard
Hop To
News and Discussions ------
Latest News
General Discussion
Support ------
mIRC Help
Connection Issues
Scripts & Popups
Development ------
Feature Suggestions
Developers
Bug Reports
Print Thread
Switch to Threaded Mode
Show Likes
Link Copied to Clipboard
View Profile
Private Message
Follow User
Forum Posts
View Profile
Private Message
Follow User
Forum Posts
View Profile
Private Message
Follow User
Forum Posts
View Profile
Private Message
Follow User
Forum Posts
Forum Rules
·
Mark All Read
Contact Us
·
Help
·
mIRC Homepage