Searching regular expr: How to match the following pattern with quotes, brackets and semicolons?

P

Peter Stacy

In a file I am searching for (the first) expression which matches the following pattern:

aabbcc('<some chars or digits but no special chars nor CRs>',<zero or one blank>'<one or more digits>');


Mind the quotes ' ! Do I have to escape/mask them ?

How can I setup an according regular expression?

Peter
 
J

John W. Krahn

Peter said:
In a file I am searching for (the first) expression which matches the following pattern:

aabbcc('<some chars or digits but no special chars nor CRs>',<zero or one blank>'<one or more digits>');

First define how many "some" is and what are "some chars" and what are
"special chars".
Mind the quotes ' ! Do I have to escape/mask them ?
No.

How can I setup an according regular expression?

/aabbcc\('[<chars>0-9]{<some>}', ?'[0-9]+'\);/

Where <chars> and <some> should be replaced with valid values.


John
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top