Hi, I'm pretty new to Notepad++, and am getting to know the regular expressions.
One thing, I can't figure out how to do this.
Say I have the text abc="123", but I want it to say xyz="123", IE: changing the string name. Any idea's on how to do this?
Let me correct myself. I meant I want the string to be ' xyz="123" /> '
It seems that all you need to replace. You can type Ctrl-H to bring up the replace dialog box.
Enter 'abc="123"' in the 'Find what' box, enter 'xyz="123" />' in the 'Replace with' box.
If you want to use Regular Expression, make sure you tick the 'Regular expression' check box.
Cheers
Ah. I forgot to add that the "123" isn't consistant throughout the file
Here is a quick tour of regular expression that NPP supports.
Sorry - the URI is here: http://notepad-plus.sourceforge.net/uk/regExpList.php
Search: abc(=\"(0-9]+\") Replace: xyz\1
Hi, I'm pretty new to Notepad++, and am getting to know the regular expressions.
One thing, I can't figure out how to do this.
Say I have the text abc="123", but I want it to say xyz="123", IE: changing the string name. Any idea's on how to do this?
Let me correct myself. I meant I want the string to be ' xyz="123" /> '
It seems that all you need to replace. You can type Ctrl-H to bring up the replace dialog box.
Enter 'abc="123"' in the 'Find what' box, enter 'xyz="123" />' in the 'Replace with' box.
If you want to use Regular Expression, make sure you tick the 'Regular expression' check box.
Cheers
Ah. I forgot to add that the "123" isn't consistant throughout the file
Here is a quick tour of regular expression that NPP supports.
Cheers
Sorry - the URI is here: http://notepad-plus.sourceforge.net/uk/regExpList.php
Search: abc(=\"(0-9]+\")
Replace: xyz\1