This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Svelte and Sapper in Action and have Mark Volkmann on-line!
See this thread for details.
Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Learning Regular Expressions: standard across programming languages?

 
Ranch Hand
Posts: 479
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hi,
Are regular expressions standard across programming languages ?
If not , does your book cover a language specific set ?

thanks,
Paul
 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, there are several variations of regex which, while having a lot in common, vary in details among languages. Perl, grep, Java, C#, Javascript, etc. all have some differences.
 
Marshal
Posts: 70266
282
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not certain, but I think there is something in the Java™ Tutorials about the Java® engine being based on Perl's.
 
paul nisset
Ranch Hand
Posts: 479
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your replies.
It seems like there is some overlap between languages but it's not exact .
 
Ranch Hand
Posts: 140
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
But there should be a specification for regular expression engines ? If not, how the api programmers wrote implementations fro regex for each programming language ?
 
paul nisset
Ranch Hand
Posts: 479
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

But there should be a specification for regular expression engines


There probably should be but regular expressions for languages predated the current services /client model .

 
I am mighty! And this is a mighty small ad:
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
    Bookmark Topic Watch Topic
  • New Topic