I'm writing a script for parsing a log file from an network device. The log file generated from the device it's not regular, the lines doesn't follow a logic sequence and haves multiple patterns. My ...

I have a routing system in this form: website/(:option)(:option)(:option(:option)) or
website/archive(/:year(/:month(-:day))) (/page/:page). The ( ) represents an optional path and :string represents ...

I have only just started experimenting with using the pcre library from C and C++, but I have so far really only used the api to programatically achieve grep-like functionality (such as shown by this ...

I'm preparing a PCRE regex in c++.
I want to prepare a regex in which it should not be preceded by specific character.
Suppose I have following input strings:
Str1 = "www.host.com/abc/files/my.pdf"
...

Currently a lot of spam mails containing links to trojans go around. This mails are relativ good fakes, they mostly look like legitimate delivery announcements from delivery services like UPS or DHL.
...

I'm trying to write regular expression in PHP which simply would remove alphanumeric words (words which contains digits), but not numbers which have punctuation and similar special characters (e.g. ...

I'm trying to implement an admin interface where manager could create advanced rules of site meta tags formation.
I have a function which takes a template and replaces placeholders in it with values ...

I'm trying to use the PCRE2 C api, but my problem is that 'str' string is included the '|' (alternator) characters.
How can i escape these '|' characters? ( \| does not work ).
Here is my test code:
...

I'm writing a Mushclient plugin in Lua. Mushclient includes a PCRE mod that allows me to compile regular expressions using the rex.new function. I'm not sure if I need to use this to accomplish what ...

I am writing a search term parser to classify search tokens for later post-processing. So far I have this pattern:
/([+])?([\-])?(\"([^\"]+)?\"?|([^\\s]+)?|([^*]+)?)([\\s])?/
Taking a sample search ...