Answers for "regex match every word"

0

regex find a word index of all matches

import re
sentence = input("Give me a sentence ")
word = input("What word would you like to find ")
for match in re.finditer(word, sentence):
    print (match.start(), match.end())
Posted by: Guest on September-11-2020
0

Regular expression: Match everything after a particular word

test = 'data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQAB'
var regex = /.*?base64(.*?)/g;
var match = regex.exec(test);
console.log(match[1]);
Posted by: Guest on June-21-2020

Code answers related to "Assembly"

Browse Popular Code Answers by Language