06h36m03s to 06h36.1, etc., in filename via regex?
Hello, and hoping this isn't too difficult, as I know once we get the regex, these things work beautifully. I'm not even a novice, I can never figure these complex ones out. But here's the deal. I have...
View ArticleRegex with condition? Should be easy
Hello, I have not worked. with regex for a long time, and I m sure I forgot something simple In the list below 12334p4p 2345stk 5643stk43 1234db43 1234a1 1234a I want to capture the first 4 items...
View Articleregex for one Capital
Hello! Can someone give me a piece of advice on how to build a regex for the following conditions -- only one capital letter in a word (must be one) n no digits. example pass -- Apple aPple giFt...
View ArticleMatch if token exists only power of n times; Match if length of string is...
Hi, I was trying to make a regex that matches only if x is present power of 2 times (n=2). Asked otherwise, make a regex that matches if the length of the string is the power of 2 where the only...
View Articlefinding repetead pattern
Hello, I have problem with regex. For example I have a pattern for (12-12)(15.15)(H) Message and this format repeats itself. I am reading data from file in this format and I would like to know that is...
View ArticleMatch all lines except lines beginning with numbers or a few alphabets
Dear friends, I am new to this forum. I need your expert advise on deriving a regular expression to achieve the following. I am using Editplus' search and replace. I could use Notepad++ as well, if...
View Articledetect and extract phone numbers
I am using a software integration platform to connect to a Google calendar and read appointment events. Each event has a small description and phone number in the Summary and I need a regular...
View ArticleRegex Lazy Match Zero or More Times (*?)
Why does e.*?r match eer, rather than er, in the word eerie? My (clearly erroneous) logic is that .*? matches zero or more of any character and as few as possible, so er (with zero of any character)...
View ArticleDoubt in Regular Expression
Scenario : Copy Code RITM1413432","state":"Open"},{"u_categor>\n","active":"true","request_item":"RITM1413419","state":"Open"},{"u_category" I have to count how many times that ( "state":"Open" )...
View ArticleRegular Expressions RegEx - Wildcards for route patterns
I am looking to find out how to use letters for wildcard patterns. Ex: 58596Q5555 Ex: 58596q5555 Q=0-4 q=5-9 I need to add many route patterns utilizing this method and am not sure how to add them. I...
View Articleget parent LDAP DN - regex
hi! I'm trying to write regex to get the parent DN. it looks like that:Copy Code $rx=[regex]'^CN=.*,((?:(?:OU|CN=).*,)*DC=domain,DC=name)$' that part which is not working is of course 'Copy Code...
View ArticleAdresse erfassen mittels RegEx
Hello all, I have a question regarding regex address capture. I have the following address: Harald Sturm Schönstrasse 18a 60311 Frankfurt am Main I want to split this string into 4 components with 4...
View ArticlePattern Check Match
Friends, I am using PowerShell. I am trying to write a regex match pattern for a string that has ALL these qualifications: 1. Must have one and only one period in the string. A. At least one Alpha,...
View Articleregex code assistance for entering 600 in a input field
Copy Code Hello I was trying to understand how to work with a regex expression forwhen a User enters starts typing in600in the input field, then populate the error message. What would be the regex code...
View ArticleIsn't ?= needless?
Hello, I am learning Regex. I use Regex for a file-searching programme in Linux. (FSearch) I do not understand, why we need ?= in Regex. It looks for me like ?= is needless. Why do I think so? Here is...
View ArticlePerl regex anchor merely matches at the position of the end of previous match...
What is Perl regex anchor to merely match at the position where the previous match ended, as anchor \G matches at the position where the previous match ended, and also at the first match attempt the \G...
View ArticleRegex before match
If I have string Copy Code12134944 toobad boys 12344444 I want to match "bad boys" and everything before and after bad boys until word boundary \b. Something like this Copy Code"\\b.+?bad boys.+?\\b"...
View ArticleNon Zero Number
Hi am looking for a RegEx that accepts a non-zero number only accepted examples : -10, -12.50, 5, 200, 103.05 etc not accepted : 0 Can you please help
View ArticleRegex to find out length
Lets say I want to "encrypt" the ID number 123456789 - add '*' to all the digits up to the last four - *****6789. A starting point is to replace .*(....) with *$1. But it would produce *6789, which is...
View Articleremove parenthese from function like string
I have a similar string with a C++ function __X __X(" (whatever1)") alpha __X("whatever2") beta and I should remove the __X function and the corresponding parentheses, so the result should be...
View Article