3 ms·
Nice, this could be really useful for beginners. I tried the "random regexp" feature and it showed one that used \P<Given> and \P<Middle>, among other things. I
by natch 13y ago
Nice, this could be really useful for beginners. I tried the "random regexp" feature and it showed one that used \P<Given> and \P<Middle>, among other things. I have used named capture groups a bit I wasn't aware of these, and was wondering where they came from.
Which leads me to the problem I had with the site.
I was hoping for a way to easily (one click) get to the documentation for each of these. It seemed strange that a given name pattern could work for any human language, so I was trying to work out how this would be done. Eventually I found the tables at the bottom (with Advanced and Tricks tabs) but clicking on the links in there just adds the items to my current expression.. what I was hoping for was a direct link to some docs for the specific item (not a general link to the top level of some huge document).
- Lindrian 13y agoHmm, the explanation part does part of what you're asking. However, I don't know of any straight forward documentation that I can link to that will explain each and every one of these tokens. I have just read through pcre.txt many times and implemented stuff from there. If you know a source I can use I will look into it.