oniguruma
How to use a regular expression to remove lines without a word?
I am using textmate to edit a file. I would like to remove all the lines not containing a word. Here is an example.[详细]
2023-03-27 01:44 分类:问答Why does the =~ operator only sometimes have side effects?
I\'ve noticed a side effect in Ruby/Oniguruma that is only present in 1 out of 4 seemingly equivalent statements. Why is the variable day defined in 009, but not in 003, 005 or 007?[详细]
2023-03-08 12:06 分类:问答Regex issue - fine backwards and not forwards Textmate
I\'m not very good with regular expressions but in Textmate, I\'m trying to clear out some multi-lines in an XML file that looks like[详细]
2023-02-28 17:07 分类:问答How do I specify a valid character property using Oniguruma regexes?
I\'m using the oniguruma gem to get unicode-aware regexes in ruby 1.8.According to the syntax documentation, I should be able to use \\p{M} or \\p{Mark} to match code points with the Mark property.[详细]
2023-02-18 06:40 分类:问答Explain this Regular Expression please
Regular Expressions are a complete void for me. I\'m dealing with one right now in TextMate that does what I want it to do...but I don\'t know WHY it does what I want it to do.[详细]
2022-12-14 00:41 分类:问答