Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
This regex !^/js/ excludes js, how can I add the word blog in there?
Context: Using in htaccess IE RewriteCond %{REQUEST_URI} !^/js/
Your question is totally unclear, if you want to match the path /blog/js:
!^/blog/js/
If you want to match js or blog:
!^/(blog|js)/
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
does anyone know how to write the regex for this list of urls for workbox
/
/tracker/patientlist
/tracker/visitlist
/tracker/triage
i am new to regex
Assuming you want to match the root url /, or /tracker/*, try this:
/(tracker/\w+)?
Here is one way.(Not sure what other URI variations you may have, but this should do it). If the first part is always /tracker, then use Bohemian's answer.
(\/[a-zA-Z]+)
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 4 years ago.
Improve this question
How do read two first letters and delete line?
This code remove all line where is GG
.*gg.*.*.*
ggang - delete
gangg -undelete
Tested in notepad++:
find: ^(gg.*)$
replace: (leave blank)
in:
ggang
gangg
out:
gangg
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
I'm trying to match all the subdirectories of the match directory but excluding the match directory.
www.domain.com/match/subdirectory1 #good
www.domain.com/match/subdirectory2 #good
www.domain.com/match/subdirectory2/subdirectory3/ #good
www.domain.com/match/ #bad
Thanks!
Try this:
/www.domain.com\/match\/([0-9A-Za-z]+\/?)+/
Edit: for multiple directories after match directory
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I need help to write a regex to exclude zip codes :
I need to exclude all following zip codes :
971xx
972xx
973xx
974xx
975xx
976xx
984xx
986xx
987xx
988xx
Can you help me writing the correct expression ?
Thanks
It's seem to me that you want to exclude french DOM-TOM zip code.
How about:
\b(?!97[1-6]|98[4678])\d{5}\b
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
How do you find the first word after a string literal via regex?
I.e.
I want to extract "DAQJ7PS" from the line:
ERROR service.PostService - Failed to save post DAQJ7PS
/ERROR service\.PostService - Failed to save post (.+)/
will give you the result in the first capturing group. This can be tuned if you have more specific requirements.