Without full samples relating to your posted question, Im really afraid nobody is going to help you.
This site shows how my regex matches what you said needs to matched.
Feel free to experiment with it, if that's easier than trying to describe what should be matched.
Don't know if this is the correct solution but it seems to work.
Using the RegexOptions.RightToLeft option seems to work.
I'm not too familiar with Regex. I've created an expression to capture data in a line and it works except for the last group DataType which does not extract the value "dtText". Can someone help?
We are trying to create a new policy to detect Employer Identification Number (EIN) in MCAS. I'm very new to Regex so I need some help. We've tried the below regex and MCAS is showing me an error of: Capturing parenthesis not allowed in regular expression. Does anyone know how to convert the below regex to something without the capturing parentheses? Thanks!
I am trying to learn Regex on my own, but got stuck with select from an unordered list.
At this moment i managed to list the cattegories, but i cant figure how to
1) capture the node ID for each cattegory (for example 560884 for the first one)
2) how to define ">" not to be listed as cattegory.
Your above comment intrigued me and made me curious.
Would you care to share something or a link that would help me what would a optimum choice of tool for over six different patterns be. I want to learn to optimize my work.
Thank you, sir!
Yes. I have a case that I defined hopefully in a accurate way as being a case of various, simultaneous and multiple replacements. I do not even know if it is even possible.
I have a text, a long one, and sprinkled all over the place in the text, in the beginning of the string, in the middle, at the end, in parenthesis or not, with such expressions of 8 kinds:
2 Tuvx 22
2 Zcb 22
2 Fh 22
I need to replace each of the above with these below:
This is the kind of situation I have, but not exactly these letters and digits - these are a dummy text as an example.
Is it possible to do this simultaneously in parallel and in the same time?
What would you use?
Because of all the differences I think you probably need to use a translate table. Create two lists of strings, the first is the strings to search for, and the second is the matching replacement. You would then need to go through each table for each line of text looking for strings in table 1. For each match you need to replace it with the appropriate entry in table 2. I am not sure how you could do this in parallel processing as it is really a sequential process.
Hi to all! My name is Dumitru, and I am a newbie to regex.
My situation is that I studied some regex on my own, but I realized I have some lacks so I have to ask other people who really understand regex.
<b>An example of my target text:</b>
Abc. 2:5a; 24:51d, 53; 1:9b, 22-23c; 1:22-23, 9; 1:22-23, 24-25;
<b>Am example of my insufficient regex formula:</b>
# Case 01. My formula does not match small letters, after and next to digits, as <b>a</b>, <b>d</b>, <b>b</b>, <b>c</b>
# Case 02. My formula does not find <b>;</b>
# Case 03. When Replace I have to add <b>Abc.</b> after each <b>;</b> and before the next series of digits, like this: <b>Abc. 2:5a; Abc. 24:51d, 53; Abc. 1:9b, 22-23c;</b> etc.
<b>Note:</b> The small letter after and next to the digits, may or may not be there.
And I need to find / match only those that are <b>not</b> at the start of a string, that is, only those that are in the middle or at the end of a string.
Instead of saying "it doesn't do this", tell us what it is expected to, and what it actually does.
So if you want it break out 5 matches delimited by semicolons, and within that split them into smaller matches, then tell us that - and show us examples of what output you want.
Regexes can be a pain to read at best, and just showing us a "bad regex" and saying "it doesn't do this" Isn't really very helpful!
And are you using a tool to help you design and test Regexes? If so, which one?
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
Last Visit: 31-Dec-99 19:00 Last Update: 30-Nov-21 21:31