| Ultrashock Forums
• [AS3] RegExp |
|||
![]() |
||||
| Search this Thread | Thread Tools | Display Modes |
|
|
|||||||||||||||||||||||||
![]() |
Ultrashock Member Comments:
|
2008-02-18
#2 |
||
|
|
2008-02-18
#3 |
||
|
ActionScript Code:
ActionScript Code:
|
|
|
2008-02-20
#4 |
||
|
Thanks Fernando I was wondering and did some research but couldn't find the answer I was looking for. In AS3 how processor intensive is using RegExp compared to using substring or something like that. Example: Lets say I am building a form and I want to remove white space after the subject. Would it be best to use a RegExp or just loop through the string until it finds the space then use substring to shorten? |
|
|
2008-02-20
#5 |
||
|
RegExp is a hell lot faster than a substring way of doing smth.
|
|
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|


4 comments
| 1742 views



Linear Mode
http://en.wikipedia.org/wiki/E-mail_address