![]() Next try \s in the Find box and click Next. ![]() Keep clicking Next - you will see that the. in the Find box and click Next to see what matches. ![]() On page 45, there is a table of Wildcards. If at any point you get confused over the next few paragraphs, look at the examples from page 47-49 for concrete illustrations of how to use regular expressions. The Grep option tells TextWrangler that we are using regular expressions, and wrap around that we want to do search and replace on the whole document regardless of where our cursor/insertion point is. Open the Find dialog and check the Grep and Wrap around boxes. We’ll continue with the cats and dogs file just to get comfortable with the basic elements of regular expressions. You have already come across regular expressions in the Unix session - now you will see how to use them to manipulate text files. We now come to the main part of this session, which is how to use regular expressions (or regex) for text manipulation described in pages 44 to 51 of the TextWrangler tutorial.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |