|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
How to Find & Replace "day(s)"
Hi,
In javascript how can I get " day(s) " and replace with ":" I can't seem to get the brackets included as these are special characters! Any idea what the correct notion is?? I have: strA = a[currentCol].replace(/ day(s) /ig,":"); but its not working :-( |
|
#2
|
|||
|
|||
|
You need to "escape" the parentheses:
strA = a[currentCol].replace(/ day\(s\) /ig,":"); |
![]() |
| Viewing: ASP Free Forums > Programming > HTML, JavaScript And CSS Help > How to Find & Replace "day(s)" |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|