| 
		
		 
  
				
		 
		
			| Joined: 06 Oct 2003 |  
			| Posts: 13 |  
			 |  
		 
		 
	 | 
	  | 
	
	
		  Posted: Tue May 18, 2004 11:49 am | 
		 | 
		  | 
		  | 
	 
	
		  | 
		  | 
	 
	 
	am i mistaken in saying that the Regular Expression Replace feature does not support backreferences?  (using version 3.3.1 on windows)
 
 
what i mean is, i would like to replace this pattern:
 
<(p|hr|div|span)/>
 
 
with this:
 
<\1 class="fooClass"/>
 
 
in english that would be, or is supposed to be, "find all p, hr, div, and span tags that do not have any attributes, and are self-closed tags, and add the class="fooClass" attribute."
 
 
if i use Regular Expression Find, and search for (for example) <[a-z]+/> this works fine.  i can use that same pattern in Replace.  but adding parentheses causes no matches to be found.  does phpEd use a different syntax to specify subpatterns and backreferences?  (i guess what I mean by different is, different from Perl.) 
	 | 
	| 
	  
	 |