473,387 Members | 1,745 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

regular expression required

Hi,
some simple code required.i was trying but i was unable.
But i want instances to get printed each time like we are printing comparing instance name.

suppose if we take
Each X_RAMB18E1 module consists of different instances like i
for the first time
\U_eth_aggregator_tb/eth_aggregator/core_0/client_side_FIFO1/rx_fifo_i/ramgen_u (
for the second time
\U_eth_aggregator_tb/eth_aggregator/core_0/central_memory/Mram_txmemory8 (

Now i want regular expression to find the code starting with

\U_eth_aggregator_tb/eth_aggregator/core_0/ and ending with opening bracket.

and print the line.(here i want the extaracted string) like

\U_eth_aggregator_tb/eth_aggregator/core_0/client_side_FIFO1/rx_fifo_i/ramgen_u

for each every cccurance of module the instance is different

so i should use the same RE.but each insatance has same properties like starting with

\U_eth_aggregator_tb/eth_aggregator/core_0/ and ending with open bracket.

and print the whole matching line

in short iwant RE starting with \U_eth_aggregator_tb/eth_aggregator/core_0/ and ending

with bracket.all the code is in @codes1 . from codes1 i have to extract the instance with RE

i have to find the occurance and print the insatance
Sep 13 '10 #1
1 1559
numberwhun
3,509 Expert Mod 2GB
I hate to say it but the way you posted this is very confusing and difficult to follow. Why not do this... post the line from the file, what in it you would like to match and what regex you have tried and we will help you get it correct.

Regards,

Jeff
Oct 10 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: YoBro | last post by:
Hi I have used some of this code from the PHP manual, but I am bloody hopeless with regular expressions. Was hoping somebody could offer a hand. The output of this will put the name of a form...
9
by: Ron Adam | last post by:
Is it possible to match a string to regular expression pattern instead of the other way around? For example, instead of finding a match within a string, I want to find out, (pass or fail), if...
3
by: Danny | last post by:
I am trying to do a regular expression to search for a url so anything that has http:\\www.hellothere.com but may not have the http:\\ and may not have the www and may not have http:\\www and...
2
by: Nazir | last post by:
Hi I'm using a regular expression validator, but if spaces are entered, it bypasses the validation! I'm using ^{5,100}$
2
by: Scott | last post by:
All I need is a Regular expression that checks to make sure the value is a number that is under 9 characters long (a number between 1 and 999999999). It is not a required field but if the user...
5
by: John . | last post by:
I am using the Regular Expression Validator control to validate a correct email address. But, at the same time I would like to make it a required field. I tested by using just the regular...
2
by: Sathyaish | last post by:
RegEx heros, I want to validate a certain field such that it shouldn't contain the percentage character (%) or the asterisk character symbol (*). The specification is that: (1) The field must...
7
by: Billa | last post by:
Hi, I am replaceing a big string using different regular expressions (see some example at the end of the message). The problem is whenever I apply a "replace" it makes a new copy of string and I...
25
by: Mike | last post by:
I have a regular expression (^(.+)(?=\s*).*\1 ) that results in matches. I would like to get what the actual regular expression is. In other words, when I apply ^(.+)(?=\s*).*\1 to " HEART...
18
by: Lit | last post by:
Hi, I am looking for a Regular expression for a password for my RegExp ValidationControl Requirements are, At least 8 characters long. At least one digit At least one upper case character
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.