-1

Using notepad++ or microsoft word: I need to find a digit followed by "tab" and followed by another digit, just replace the tab by EOL. example: $5,974.89 \t 776

2
  • What software are you using? What do you mean "replace by 'enter?'" In your example, is this the before or after example - please provide both using \t to represent a tab character.
    – Brian
    Commented Jul 14, 2023 at 23:36
  • emm.. What is EOL?
    – Lee
    Commented Jul 17, 2023 at 6:12

1 Answer 1

2

Using notepad++ (using regex):

find: (.*[0-9])(\t)([0-9].*)

replace (by inserting "enter"): \1\n\3

notepad++ image

3
  • @Rohit Gupta, how did you get the image to load? I uploaded the image in FireFox but couldn't get it to load the image - only to display the link.
    – tsu tsu
    Commented Jul 15, 2023 at 0:15
  • You can see the edit history by looking at the edit queue. Use the link e.g. edited X hours ago and Side-by-side Markdown button. The exclamation mark was missing. Commented Jul 15, 2023 at 8:02
  • The two .* are useless as well as the capture group for \t; a more efficient regex: (\d)\t(\d) and replace: $1\n$2
    – Toto
    Commented Jul 15, 2023 at 8:02

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .