0

I want to select the first word at the beginning of each line that contain the word HTML.

For example:

I go home now.html" and then

Take me with you nowhtml" and then

My book is great.

The regex must select the words I (from the first line) and Take (from the second line)

I made a regex, but it selects the first word from any line, not just those that have HTML:

SEARCH: ^\b(?!html\b)\w+

1 Answer 1

1
  • Find what: ^\w+(?=.+html)
  • Search mode: Regular expression

You must log in to answer this question.

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