Update all new Tasks
This commit is contained in:
parent
00a190b0a6
commit
91df62d461
5697 changed files with 93386 additions and 804 deletions
5
Task/String-matching/Mathematica/string-matching.math
Normal file
5
Task/String-matching/Mathematica/string-matching.math
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
StartWith[x_, y_] := MemberQ[Flatten[StringPosition[x, y]], 1]
|
||||
EndWith[x_, y_] := MemberQ[Flatten[StringPosition[x, y]], StringLength[x]]
|
||||
StartWith["XYZaaabXYZaaaaXYZXYZ", "XYZ"]
|
||||
EndWith["XYZaaabXYZaaaaXYZXYZ", "XYZ"]
|
||||
StringPosition["XYZaaabXYZaaaaXYZXYZ", "XYZ"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue