NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Regular Expressions


Joined: 28 Sep 2004
Posts: 12
Reply with quote
Hi,

The regular expression search and replace just does not work and is very dangerous.

I have a script that has two lines for every line that should be in the file. This was due to FTP formats. If I try to do the simple search for \n\n and replace with \n phpEd replaces ever letter "n" in the script with "\n" literal!

FYI the Regular Expressions checkbox is ticked.

This syntax I have used all in lots of diffrent php editors with a problem. Me and my coleage are very nervous about using the search and replace tool in phpEd because of this.

Regards,

Cameron.
View user's profileFind all posts by camsoftSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8335
Reply with quote
yes, regexp search & replace feature works in line mode only. It can't work with line ends like \r or \n... Also it does not support escapes.
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 28 Sep 2004
Posts: 12
Reply with quote
Are there any plans to make the regular expression more powerful? as at the moment they seem quite limited. Its a shame as I and lot of other people use the regular expressions all the time for search and replace of multiable lines. I guess I will have to use a 3rd party app to do this.
View user's profileFind all posts by camsoftSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8335
Reply with quote
Quote:
Are there any plans to make the regular expression more powerful

Yes we have some good plans for that.
View user's profileFind all posts by dmitriSend private messageVisit poster's website
Regular Expressions
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