|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
You don't need a fax machine to get faxes. Get a fax-to-email fax number from CallWave. Try it free.
|
|
#1
|
|||
|
|||
|
I am new to ASP, I am looking for something similar to "preg_match" and "preg_match_all" in PHP.
I have searched the forum with no luck. I hope you are able to give me some pointers Basically I want to match some text from a form and loaded it into new variables making use of regular expressions. the text comes form a textarea input type. in PHP it would be something like this. PHP Code:
so it goes; match some static text then a space then a word of 2 to 3 letters, then a number of 1 to 10 digits from the textarea field and load it to array_values. then the array_values result would be something like ( [0] => Array ( [0] => somestatictext AB1234567 ) [1] => Array ( [0] => somestatictext ) [2] => Array ( [0] => AB1234567 ) ) then I can say PHP Code:
which is "AB1234567", then I can do whatever with it, like save it to file, database, display it in HTML, etc. Any pointers, is this possible in ASP. I hope I am being clear. Thanks in advance. |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > ASP and input parsing |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|