Viewing 2 posts - 1 through 2 (of 2 total) Author Posts April 22, 2011 at 5:04 pm #9351 spirosParticipant What would be the regex for this? I.e. I would like to find the word What in the 1st line, the word Where in the 2nd, etc: What would be the regex for this Where would be the regex for this April 26, 2011 at 4:09 pm #9355 Yutaka EmuraKeymaster Hello spiros, If you want to find the first and second word at a line, you can use the following regular expression: Find: ^(w+?)s+?(w+) 1 and 2 represents the first and second word respectively. For instance, you can replace with capital letters: Replace with: U1 2 Thanks! Author Posts Viewing 2 posts - 1 through 2 (of 2 total) The forum ‘Regular Expressions’ is closed to new topics and replies.