General questions about using TextPad
Moderators: AmigoJack , bbadmin , helios , MudGuard
BASHERS33
Posts: 1 Joined: Sun Jan 18, 2009 11:59 pm
Post
by BASHERS33 » Mon Jan 19, 2009 12:05 am
Can someone please help me figure out how to replace all cases of:
with
where word is ANYTHING between the single quotes?
Someone made directions for doing it in another text editor. For that editor it worked, but that editor keeps freezing and apparently even gave me a virus. When I try the same expressions with textpade they don't work. They come up as having no results found.
Here is an example of what they have:
Search:
Code: Select all
\$this->ipsclass->vars\[\'(.+?)\'\]
Replace:
Code: Select all
\$this->settings->getSetting('$1')
That does not work in textpad. What do I need to change?
Thanks
ben_josephs
Posts: 2464 Joined: Sun Mar 02, 2003 9:22 pm
Post
by ben_josephs » Mon Jan 19, 2009 8:13 am
Fi nd what: \$this->something \['([^']+)'\]
Rep lace with: $this->somethingelse ('\1')
[X ] Regular e xpression
Replace A ll
For example,
Fi nd what: \$this->ipsclass->vars\['([^']+)'\]
Rep lace with: $this->settings->getSetting('\1')
[X ] Regular e xpression
Replace A ll
These assume you are using Posix regular expression syntax:
C onfigure | P references | Editor
[X ] Use P OSIX regular expression syntax
TextPad does not give you viruses.