Python 3, (削除) 58 (削除ここまで) 5669 bytes
lambda r,s:re.match(re.sub('[_+]''(?<=[_*])\*+|[_+]','',r)+'$',s)
import re
Simple - just convert it to ordinary regex, using ordinary regex!
-2 bytes thanks to Deadcode
Note from author: invalid due to chained repeats and repeats of nothing being allowed. Working on it.
Python 3, (削除) 58 (削除ここまで) 56 bytes
lambda r,s:re.match(re.sub('[_+]','',r)+'$',s)
import re
Simple - just convert it to ordinary regex, using ordinary regex!
-2 bytes thanks to Deadcode
Note from author: invalid due to chained repeats and repeats of nothing being allowed. Working on it.
Python 3, 69 bytes
lambda r,s:re.match(re.sub('(?<=[_*])\*+|[_+]','',r)+'$',s)
import re
Simple - just convert it to ordinary regex, using ordinary regex!
Python 3, 58(削除) 58 (削除ここまで) 56 bytes
import re
f=lambdalambda r,s:re.match(re.sub('[_+]','',r)+'$',s)
import re
Simple - just convert it to ordinary regex, using ordinary regex!
-2 bytes thanks to Deadcode
Note from author: invalid due to chained repeats and repeats of nothing being allowed. Working on it.
Python 3, 58 bytes
import re
f=lambda r,s:re.match(re.sub('[_+]','',r)+'$',s)
Simple - just convert it to ordinary regex, using ordinary regex!
Python 3, (削除) 58 (削除ここまで) 56 bytes
lambda r,s:re.match(re.sub('[_+]','',r)+'$',s)
import re
Simple - just convert it to ordinary regex, using ordinary regex!
-2 bytes thanks to Deadcode
Note from author: invalid due to chained repeats and repeats of nothing being allowed. Working on it.