Sublime Forum

Begin/End Restriction

#1

Hi again :stuck_out_tongue: I just want to know if they are any way to apply something only if the begin and end element are found ? Because the end element can be optional and this is a problem :sweat:

0 Likes

#2

If it’s on the same line, mask the begin pattern with a look-ahead to prevent it from matching of the end pattern wouldn’t match.

If it’s on a different line, no.

0 Likes

#3

Cab you give me an exemple please ? I already heard about look-ahead things but I’m french and it’s very hard for me to understand :confused:

0 Likes

#4

http://www.regular-expressions.info/lookaround.html

or try to find a French RegEx tutorial :wink:

0 Likes

#5

Can you give me an exemple please ? I don’t understand when you say mask the begin pattern :confused:

0 Likes

#6

Thanks, I did my best to translate and it was very helpful.

0 Likes

#7

Can you give a little example please ? I’ll understand immediately

0 Likes