Changes between Initial Version and Version 1 of Ticket #25297, comment 3


Ignore:
Timestamp:
Aug 25, 2015, 3:53:14 AM (9 years ago)
Author:
Alexandre Pocquet

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #25297, comment 3

    initial v1  
    1212
    1313The `(?:\s*\|\s*[^\s]+(?::(?:\s+|(?:"[^"]*?")|(?:'[^']*?'))?))*` regex should catch and throw away any filter. I may be wrong, I don't know the precise syntax of a filter name.
    14 The first part is quite simple and matches a `|` followed by a filter name. The second part (starting with `?::`) is more complex because it must matches filter arguments, including string literals.
     14The first part is quite simple and matches a `|` followed by a filter name. The second part (starting with `?::`) is more complex because it must match filter arguments, including string literals.
    1515
    1616Test [http://pythex.org/?regex=%5E%5Cs*trans%5Cs%2B((%3F%3A%22%5B%5E%22%5D*%3F%22)%7C(%3F%3A%27%5B%5E%27%5D*%3F%27))(%3F%3A%5Cs*%5C%7C%5Cs*%5B%5E%5Cs%3A%5D%2B(%3F%3A%3A(%3F%3A%5B%5E%5Cs%27%22%3A%5D%2B%7C(%3F%3A%22%5B%5E%22%5D*%3F%22)%7C(%3F%3A%27%5B%5E%27%5D*%3F%27)))%3F)*(%5Cs%2B.*context%5Cs%2B((%3F%3A%22%5B%5E%22%5D*%3F%22)%7C(%3F%3A%27%5B%5E%27%5D*%3F%27)))%3F%5Cs*&test_string=%20trans%20%27inactive%27%20%7C%20upper%3A%27foo%20bar%27%20context%20%27plural%27%20&ignorecase=0&multiline=0&dotall=0&verbose=0 here].
Back to Top