[Solved] Finding a string that matches till http is found [duplicate]

[ad_1]

Tested this RegEx against your test string:

([Ss]peak(.|\r|\n)*?(?=http))

The part (?=http) is the positive lookahead, which asserts that at the end of your string http follows.

[ad_2]

solved Finding a string that matches till http is found [duplicate]