NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
[resolved] 5.2 Regex stored references


Joined: 07 Mar 2006
Posts: 22
Reply with quote
Thank you for implementing S&R with Regex and new-line capability.

Here's one quirk, though. The regex does not seem to work with stored references. I.e search for a year followed by anything followed by a new line

Code:
^(\d{4})(.*)(\n)


Move the year to the second slot:

Code:
$2 $1 $3


This will simply print $2 $1 $3 instead of using the stored references. I also tried \\2 \\1 \\3 with the same result. Don't know whether this is a bug or a limitation....


Last edited by Joe Belmaati on Tue Oct 23, 2007 7:51 am; edited 2 times in total
View user's profileFind all posts by Joe BelmaatiSend private message


Joined: 14 Jun 2006
Posts: 14
Location: Eindhoven, Netherlands
Reply with quote
I don't think you need to escape the references, using \2 \1 \3 should work. Smile
View user's profileFind all posts by MeAngrySend private messageVisit poster's websiteMSN Messenger


Joined: 07 Mar 2006
Posts: 22
Reply with quote
Yes - that works!! THX.
View user's profileFind all posts by Joe BelmaatiSend private message
[resolved] 5.2 Regex stored references
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic