|
|
stackoverflow.com
- 2012-01-09 09:23:51
- Similar
- Report/Block
I want a regular expression to extract text between EVALUATE END-EVALAUTE or . which ever comes first. Presently i am using regular expression: EVALUATE\\s*(((?!EVALUATE|(END-EVALUATE| \\.)).)+)\\s*(END-EVALUATE|\\.) But my problem is i do not want to consider if it comes within double quotes. Please suggest any better regular expression...
|
|
|
stackoverflow.com
- 2012-05-27 21:19:26
- Similar
- Report/Block
I was surprised to see that /a/ === /a/ evaluates to false in JavaScript. Reading through the specs Two regular expression literals in a program evaluate to regular expression objects that never compare as === to each other even if the two literals' contents are identical. Since cannot be used to test for equality, how can equality of...
|
|
|
stackoverflow.com
- 2012-03-29 04:33:50
- Similar
- Report/Block
Ok so I have a phrase delimited by spaces. Each element can only be an integer or real number, with the exception of the last two elements that can be the string null. My regular expression is ([0-9]*\.[0-9]*|[0-9]*) ([0-9]*\.[0-9]*|[0-9]*) ([0-9]*\.[0-9]*|[0-9]*) ([0-9]*\.[0-9]*|[0-9]*|null) ([0-9]*\.[0-9]*|[0-9]*|null) I do not understa...
|
|
|
|
stackoverflow.com
- 2012-05-05 11:56:51
- Similar
- Report/Block
there is a windows program that supports Regular Expression (or Dos Expression) for search files. (MythicSoft's FileLocator Pro) it supports wildcards such as * ? i want to find only 4 characters file names with jpg format how can i write a phrase for that? this phrase (????.jpg) finds all lower and upper cases.(i put it's mode to dos ex...
|
|
|
stackoverflow.com
- 2013-05-02 11:32:28
- Similar
- Report/Block
I am looking to for Regular Expression for a text field which accepts alphabets, also dots(.), brackets, -, & like A.B.C ABC (new), A & A co. A-abc. I have my regular expression: /^[A-z.&() ]+$/ I want the string to mandatory start with alphabet. But seems like this is not working when I add - into the same, may be the syntax is wrong.
|
|
|
stackoverflow.com
- 2012-06-15 18:59:00
- Similar
- Report/Block
I am using a regular expression like the below to match email addresses in a file: email = re.search('(\w+-*[.|\w]*)*@(\w+[.])*\w+' ,line) When used on a file like the following, my regular expression works well: mlk407289715@163.com huofenggib wrong in get_gsid mmmmmmmmmm776@163.com rouni816161 wrong in get_gsid But when I use it on a fil...
|
|
|
stackoverflow.com
- 2012-03-28 12:55:51
- Similar
- Report/Block
Is there a way to to evaluate a boolean expression and assign its value to a variable ? In most of the scripting languages there is way to evaluates e.g //PHS $found= $count > 0 ; //evaluates to a boolean values I want similar way to evaluate in bash : BOOL=[ "$PROCEED" -ne "y" ] ; This is not working and tried other way but could no...
|
|
|
|
stackoverflow.com
- 2012-03-08 19:06:42
- Similar
- Report/Block
I have this regular expression in my sql query DECLARE @RETURN_VALUE VARCHAR(MAX) IF @value LIKE '%[0-9]%[^A-Z]%[0-9]%' BEGIN SET @RETURN_VALUE = NULL I am not sure, but whenever I have this in my row 12 TEST then it gives me the value of 12, but if I have three digit number then it filters out the three digit numbers.How can I modif...
|
|
|
stackoverflow.com
- 2013-03-20 10:45:12
- Similar
- Report/Block
I've written the next regular expression $pattern = "~\d+[.][\s]*[A-Z]{1}[A-Za-z0-9\s-']+~"; in order to match substrings as 2.bon jovi - it's my life the problem is the only part that is recognized is - bon jovi none " - " or " ' " are recognized by this regular expression. I'd prefer to know what is wrong with the regular expression tha...
|
|
|
stackoverflow.com
- 2012-03-03 06:52:15
- Similar
- Report/Block
I have this regular expression to validate the URL: ^[a-zA-Z0-9\-\.]+\.[a-zA-Z]{2,3}(/\S*)?$ ^ . This regular expression works smoothly but I want to add a limit the amount of W's in the beginning of the URL. If the user tries to save the URL with under 3 W's (for example ww), the regular expression will deny the save. The same result will...
|
|
|
stackoverflow.com
- 2013-05-04 11:42:41
- Similar
- Report/Block
I want to write a regular expression in C# that inputs only a specific number of only numbers. Like writing a regular expression to validate 5 digits number like so "12345"...
|
|
|
stackoverflow.com
- 2012-03-11 01:12:46
- Similar
- Report/Block
I have a NSString which represents a calculation eg. @"(10+10)*2" and I want to evaluate the string as if it was actually something like this; double result = (10+10)*2; What is the most straightforward approach to take in iOS?...
|
|
|
|
stackoverflow.com
- 2012-03-28 07:41:01
- Similar
- Report/Block
How to create a regular expression for strings of such that will be rejected? For example, abcabccababcccccab will be accepted and aaabc aaabbcccc abcccababaa will be rejected.
|
|
|
stackoverflow.com
- 2012-03-09 19:55:37
- Similar
- Report/Block
Im trying to develop a regular expression to validate a string that comes to me like: "TE33" or "FR56" or any sequence respecting 2 letters and 2 numbers. The first 2 characters must be alphabetic and 2 last caracters must be numbers. I tryed a LOT of combinations and I didnt have success. Last one I try: if(Regex.IsMatch(myString, "^[A-Z...
|
|
|
stackoverflow.com
- 2013-04-21 07:36:49
- Similar
- Report/Block
I need to write a parser for log file. I'm doing the regular expression but I'm finding some problems. Here is the first line: s0001 | smich | 02-03-2013 13:55:42 (Tue Mar 2013) | 2 This is the entry header and I wrote the regular expression like that r\\d+ (\\| .*){3} but it doesn't work. What about the comment line?? "Added a new State...
|
|
|
stackoverflow.com
- 2012-12-27 03:45:06
- Similar
- Report/Block
Short Version: I am trying to build the regular expression to find out if a string contains "0,0,0,0". Every attempt I have made only returns each character as a match, not the full string within the quotes. I am trying to find certain text within a string inside of a textbox in VB.NET . My issue is that instead of returning one match it...
|
|
|
stackoverflow.com
- 2012-04-02 17:36:55
- Similar
- Report/Block
I am trying to identify which signals are selected by a bus selector block in matlab. In essence I am working on a script that compresses multiple blocks into one single lookup table. In order to do this I need to identify the inputs to all the blocks yet if the input to one of the blocks is a mux of variables then I need to identify the...
|
|
|
stackoverflow.com
- 2012-02-29 06:07:13
- Similar
- Report/Block
In MS COBOL 2.20, I want to know how I can debug my program to see line-by-line execution just like debugging in Visual Basic 6.0. What are the steps in debugging my cobol program?...
|
|
|
|
stackoverflow.com
- 2012-04-02 18:28:00
- Similar
- Report/Block
Can I rename all files in a directory in TortoiseSVN using a regular expression? Basically I want to strip out the last two characters of the file name before the .extension. For example, MyFileXY.c MyOtherFile12.c changed to: MyFile.c MyOtherFile.c...
|
|
|
stackoverflow.com
- 2013-03-14 13:41:53
- Similar
- Report/Block
I'm trying to create a regular expression that contains 17 characters, must have mandatory numbers and letters, and must not contain the letters I, O, Q, Ñ. At the moment i have got '^(([a-h]|[j-n]|p|[r-z]|[A-H]|[J-N]|P|[R -Z]|[0-9]){17})$' . But if i type only numbers or only letters, the regular expression validates it as good.
|
|
|
stackoverflow.com
- 2012-03-27 13:52:35
- Similar
- Report/Block
In objective-c I am trying to evaluate the following expression: _c = _f / 5 * 8; It tells me that an int and a NSNumber are invalid arguments to a binary expression. Whats wrong? I am just getting started with objective-c and cocoa but am familiar with php and basic and kinda familiar with javascript.
|
|
|
|
stackoverflow.com
- 2013-04-12 04:04:46
- Similar
- Report/Block
I have a pdf file which I converted to .txt using an online tool. Now I want to parse the data in that and split it using regular expression. I am almost done but stuck at 1 point. Example of data is: 00 41 53 Bid Form – Design/Build (Single-Prime Contract) 27 05 13.23 T1 Services etc I want to split it like : "00 41 53 Bid Form – Design/...
|
|
|
gamedev.net
- 2013-06-06 18:51:52
- Similar
- Report/Block
I am working with two classes right now which are called Block and TPiece . In the TPiece class there is an array of Block . The Block class only has one constructor Block(int x, int y) . The constructor for my TPiece class is TPiece::TPiece() block[0] = Block(4, -1); //Left Block block[1] = Block(5, -1); //Middle Block block[2] =...
|
|
|
stackoverflow.com
- 2012-03-18 14:09:25
- Similar
- Report/Block
I have problem as below: var test = $("#k_w").val().search("sinh("+parseFloa t(sinh_array[i])); The debugger shows an error: Uncaught SyntaxError: Invalid regular expression: /sinh(2/: Unterminated group sinh_array[i] are numbers. What's wrong?...
|
|
|
|
stackoverflow.com
- 2012-05-17 09:04:31
- Similar
- Report/Block
What is a php regular expression that will allow letters and spaces. But spaces only after the first word? Thank You...
|
|
|
stackoverflow.com
- 2013-03-20 14:54:27
- Similar
- Report/Block
I've a textbox in an ASP.NET application, for which I need to use a regular expression to validate the user input string. Requirements for regex are - Any number of leading and trailing spaces are okay. It should allow only one space between words. In other words, space count should only be one. Matches: Test Test abc Non Matches: Test ab...
|
|
|
stackoverflow.com
- 2013-04-24 17:32:59
- Similar
- Report/Block
how do you write a javascript regular expression to allow only the following: numbers, numbers with comma inbetween numbers with hyphen in between but only followed by another number or a comma followed by a number and then this pattern can repeat again. So far i have the following but this is allowing 1-1-1 which i do not want. A hyphen...
|
|
|
|
macupdate.com
- 2013-03-23 01:53:14
- Similar
- Report/Block
RegexMatch lets developers create and test regular expressions on their Mac. RegexMatch generates code in several common languages, allowing you to reduce your development time. Regular expressions are standardized text strings that explicitly describe a matching or replacement pattern for text. Regular expressions ("Regex" for short) ar...
|
|
|
stackoverflow.com
- 2013-03-20 00:01:28
- Similar
- Report/Block
I have a complex grouped regular expression, but in RegExp 5.5 the submatches of a match are returned as strings, there's no exposure to .FirstIndex and .Length. The captured strings are not unique. Regular expression: ([A-Z]+)\s+\[A-Z]?\s+(\d{3})\-(\d{3})\s+ ([A-Z]?)\-([A-Z]?) Example text: BLAHBLAH A 100-100 A-A BLAH 101-101 A- Output:...
|
|
|
stackoverflow.com
- 2012-03-31 21:56:27
- Similar
- Report/Block
I need to replace every instance of any text in square brackets with something else, with each square bracket block being treated separately. For example, start with: [quote author=joe link=topic=765.msg4476#msg4476 date=1330380346] This is the quoted text [/quote] This is the new post being turned into: ** This is the quoted text ** Thi...
|
|
|
|
stackoverflow.com
- 2012-03-27 16:24:09
- Similar
- Report/Block
I'm trying to run a regular expression (Ruby) on a file containing code and custom comment tags. I want to find all text between ( /*+ ... +*/ ), single line or multiline. Given: # Testing Documentation # ## Another Documentation Line ## This is also picked up Some code here that is ignored /*+ # More documentation # +*/ I would...
|
|
|
stackoverflow.com
- 2012-04-01 09:00:34
- Similar
- Report/Block
I need a regular expression that will return the last directory in a path. e.g, from www.domain.com/shop/widgets/ , return "widgets". I have an expression that almost works. [^/].*/([^/]+)/?$ It will return "widgets" from www.domain.com/shop/widgets/ but not from www.domain.com/widgets/ I also need to ignore any URLs that include a filen...
|
|
|
stackoverflow.com
- 2012-04-09 08:31:50
- Similar
- Report/Block
We want to open primefaces dialog box condition based on the response in the webflow. For example in below code,changeresponse can have values like sucess,error based on error in changeresponse,we want to open dialog box. I have posted code <action-state id="submitNoCloseAction"> <evaluate expression="ct.postRequestOnClose(eMod.. .
|
|
|
|
stackoverflow.com
- 2012-06-20 13:30:10
- Similar
- Report/Block
I am busy writing an dynamic AND filter on a IQueryable Linq object, so far this is my code and it works: public static IQueryable<T> FilterHeaders<T>(this IQueryable<T> records, IEnumerable<ListHeader> headers) // Build linq expression to filter queryable if (headers != null) { var param = Expression.Parameter...
|
|
|
stackoverflow.com
- 2012-03-14 23:55:01
- Similar
- Report/Block
The child process begins executing at the exact point where the last one left off - after the fork statement. What if the statement contains multiple fork()s like the conditional expression like the following. Where exactly program execution starts for the child process. Before worrying about how many processes gets created, I wanted to k...
|
|
|
stackoverflow.com
- 2012-06-08 01:47:18
- Similar
- Report/Block
I was looking at some code in this thread How do you trigger a block after a delay, like -performSelector:withObject:afterDelay:? . I was wondering, if the block does something asynchronously, when should the block be released? Let's say I have code that looks like this: + (void)runBlock:(void (^)())block block(); + (void)doWork void (^...
|
|
|
|
stackoverflow.com
- 2010-01-12 17:05:31
- Similar
- Report/Block
I'm just learning COBOL; I'm writing a program that simply echos back user input. I have defined a variable as: User-Input PIC X(30). Later when I ACCEPT User-Input, then DISPLAY User-Input " plus some extra text", it has a bunch of spaces to fill the 30 characters. Is there a standard way (like Ruby's str.strip!) to remove the extra spac...
|
|
|
stackoverflow.com
- 2012-03-29 19:32:07
- Similar
- Report/Block
I need to convert data from a spreadsheet into insert statements in SQL. I've worked out most of the regular expressions for using the find and replace tool in SSMS, but I'm running into an issue when trying to reference the 9th parenthesized item in my final replace. Here is the original record: Blue Doe 12/21/1967 1126 Queens Highway To...
|
|
|
thestudentroom.co.uk
- 2013-03-25 14:02:09
- Similar
- Report/Block
I have a rate-concentration graph for the iodine clock reaction but im not too sure how to fully evaluate it to get the best marks. Any help please?...
|
|
|
|
liveshopping-aktuell.de
- 2013-04-10 06:00:00
- Similar
- Report/Block
Microsoft Expression Studio 4 Ultimate enthält Expression Blend, Expression Web + SuperPreview, Expression Encoder Pro und Expression Design. Der Workflow von Expression Blend, Visual Studio, Silverlight und .NET ist für die Gestaltung und...
|