0

i have n line of code starting with

(21714,
(21715,

I want to replace the numeric values with NULL string to get

(NULL,
(NULL,

Please suggest the reqular expression I should use in Edit plus Find Replace functionality to achieve this.

Toto
  • 89,455
  • 62
  • 89
  • 125
Priya Saini
  • 109
  • 13

3 Answers3

1

It may looks like this (this example is written in js, but I don't think it is a problem):

'(21714, (21715, ...'.replace(/^(\([0-9]*\,\s\([0-9]*)/, "(NULL, (NULL");
Danil Speransky
  • 29,891
  • 5
  • 68
  • 79
1

I have tested these steps via EditPlus v3.41:

step1. Menu > Search > Replace

step2. click "More" button

step3. input pattern \([0-9]+, to "Find what"

step4. Replace with (NULL,

godspeedlee
  • 672
  • 3
  • 7
0

^([0-9]*

I used this, it searched for occurrences: (21714 (21715

Priya Saini
  • 109
  • 13