This is a discussion on "RegExp.$1" within the JavaScript Forum section. This forum, and the thread "RegExp.$1 are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
RegExp.$1
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|
|
||||
|
Re: RegExp.$1
As far as I know $1, $2 and $3 etc.. is a way to reference the matches of a regex replace in PHP (and possibly other implementations).
If you want to replace something in a regex you can include the original source by using the associated match using $x. I have not seen or heard anything that would use $1, $2 etc.. in javascript.
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
|
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| regexp find and seperate custom tags in a string | Chippo | JavaScript Forum | 6 | Apr 24th, 2008 08:44 |