Last active
February 27, 2025 12:32
-
-
Save R0mb0/8999c05f4a4224144dd27e8a3b0744c0 to your computer and use it in GitHub Desktop.
Function to remove single numbers from a text in Classic ASP
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<% | |
Function remove_single_numbers_from_text(ByVal my_string) | |
Dim temp_string | |
temp_string = my_string | |
Dim temp | |
For Each temp In Split(my_string, " ") | |
If IsNumeric(temp) Then | |
temp_string = Replace(temp_string, temp & " ", "") | |
End If | |
Next | |
temp_string = Trim(temp_string) | |
remove_single_numbers_from_text = temp_string | |
End Function | |
%> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment