Answer the question
In order to leave comments, you need to log in
How to replace using regular expressions in sublime text 3?
The file contains lines like:
font-family: Arial Bold;
font-family: Arial Regular;
font-family: Arial Light;
Answer the question
In order to leave comments, you need to log in
=> Enable regex
=> Find What: Arial (\w+);
=> Replace With: Arial $1, sans-serif;
=> ReplaceAll
if you need it once, then use notepad ++ better there is a mass replacement.
write what to look for: "Arial Bold", write what to replace with: "font-family: Arial Bold, sans-serif;"
and so on for all three
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question