K
kazaam
Hi again,
I need to parse a line like this here:
myoverlook://thatstrue@blablabla
I need at the end just thatstrue. So I wrote for the beginning:
result = overlook.scan(/myoverlook://(.+?)\n/m)
Of course this doesn't work because of the // which are special charachters in a regexpr. But how can I tell that they shoudln't be treated as specialcharachters? Is there an escape charachter? I tried it so:
result = overlook.scan(/myoverlook:\/\/\(.+?)\n/m)
but this throws an error: unmatched ): /myoverlook:\/\/\(.+?)\n/
What's the correct synthax for this?
bye
I need to parse a line like this here:
myoverlook://thatstrue@blablabla
I need at the end just thatstrue. So I wrote for the beginning:
result = overlook.scan(/myoverlook://(.+?)\n/m)
Of course this doesn't work because of the // which are special charachters in a regexpr. But how can I tell that they shoudln't be treated as specialcharachters? Is there an escape charachter? I tried it so:
result = overlook.scan(/myoverlook:\/\/\(.+?)\n/m)
but this throws an error: unmatched ): /myoverlook:\/\/\(.+?)\n/
What's the correct synthax for this?
bye